oshipka/vm_gen/templates/model_py
2020-06-08 16:32:39 +02:00

17 lines
367 B
Plaintext

from oshipka.persistance import db, ModelController, index_service, LiberalBoolean
[%- if imports %]
[%- for import in imports %]
[[ import ]]
[%- endfor %]
[%- endif %]
[%- for secondary in _secondaries %]
[% include "_model_m_n_py" %]
[%- endfor %]
[% include "_model_py" %]
[%- if searchable %]
index_service.searchables.append([[ name ]])
[%- endif %]