From ac8e4a0406483b9ce9514ad9695592323b795b39 Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Tue, 10 Sep 2024 16:26:23 +0800 Subject: [PATCH] Fix the gen model template formatting (#416) --- backend/templates/py/model.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/templates/py/model.jinja b/backend/templates/py/model.jinja index c57e562a..da61f9d0 100644 --- a/backend/templates/py/model.jinja +++ b/backend/templates/py/model.jinja @@ -52,8 +52,8 @@ class {{ table_name_class }}({% if have_datetime_column %}Base{% else %}MappedBa {%- endif -%} {%- endif -%}{% if model.sort != 0 %}, sort_order={{ model.sort }}{% endif %}, comment= {%- if model.comment != None -%} - {{ model.comment }}) - {%- else -%} + '{{ model.comment }}') + {% else -%} None) {%- endif -%} {% endfor %}