feat: support form_binds in data_browser template for edit form cascading

This commit is contained in:
Hermes Agent 2026-06-24 10:42:30 +08:00
parent 3a8aff6b1b
commit 94c1e1dfe5

View File

@ -42,6 +42,9 @@ data_browser_tmpl = """
"update_data_url": "{{update_data_url}}"
{% else %}
"update_data_url":{%- raw -%}"{{entire_url('update_{%- endraw -%}{{summary[0].name}}{%- raw -%}.dspy')}}"{%- endraw %}
{% endif %}
{% if form_binds %}
,"binds":{{json.dumps(form_binds, indent=4, ensure_ascii=False)}}
{% endif %}
},
{% endif %}