[%- for column in columns %] [%- endfor %]
: [%- if column.type in ['relationship'] %] [%- if column.multiple %] [%- endif %] {%- for sub_instance in model_views.[[ column.name ]].model.query.all() %} [%- else %] {% if instance.[[ column.name ]]_id == sub_instance.id %}selected="selected"{% endif %}>{{ sub_instance }} [%- endif %] {%- endfor %} [%- elif column.type in ['choice', ] %] [%- elif column.type in ['number', 'int', 'integer', ] %] [%- elif column.type in ['bool', 'boolean', ] %] [%- else %] [%- endif %]