diff --git a/xls2ddl/tmpls.py b/xls2ddl/tmpls.py index 65e0e65..10c3450 100644 --- a/xls2ddl/tmpls.py +++ b/xls2ddl/tmpls.py @@ -43,7 +43,7 @@ data_browser_tmpl = """ {% else %} "update_data_url":{%- raw -%}"{{entire_url('update_{%- endraw -%}{{summary[0].name}}{%- raw -%}.dspy')}}"{%- endraw %} {% endif %} -{% if editable.binds %} +{% if editable and editable.binds %} ,"binds":{{json.dumps(editable.binds, indent=4, ensure_ascii=False)}} {% endif %} },