bugfix
This commit is contained in:
parent
0e8fa25391
commit
ed896dbf4e
@ -55,8 +55,11 @@ ui_tmpl = """
|
|||||||
"parentField":"{{parentField}}",
|
"parentField":"{{parentField}}",
|
||||||
"idField":"{{idField}}",
|
"idField":"{{idField}}",
|
||||||
"textField":"{{textField}}",
|
"textField":"{{textField}}",
|
||||||
|
{% if dataparams %}
|
||||||
|
"dataparams": {{json.dumps(dataparams)}},
|
||||||
|
{% endif %}
|
||||||
{% if get_data_url %}
|
{% if get_data_url %}
|
||||||
"dataurl": "{{get_data_url}}"
|
"dataurl": "{{get_data_url}}",
|
||||||
{% else %}
|
{% else %}
|
||||||
"dataurl":{%- raw -%}"{{entire_url('./get_{%- endraw -%}{{tblname}}{%- raw -%}.dspy')}}"{%- endraw %}
|
"dataurl":{%- raw -%}"{{entire_url('./get_{%- endraw -%}{{tblname}}{%- raw -%}.dspy')}}"{%- endraw %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ def subtable2toolbar(desc):
|
|||||||
desc.toolbar = DictObject(**{
|
desc.toolbar = DictObject(**{
|
||||||
"tools":[]
|
"tools":[]
|
||||||
})
|
})
|
||||||
tools = desc.toolbar.tools
|
tools = desc.toolbar.tools or []
|
||||||
binds = desc.binds or []
|
binds = desc.binds or []
|
||||||
for st in desc.subtables:
|
for st in desc.subtables:
|
||||||
tools.append({
|
tools.append({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user