oshipka/vm_gen/templates/model_py
2020-07-08 14:38:55 +02:00

17 lines
423 B
Plaintext

from oshipka.persistance import db, ModelController, index_service, LiberalBoolean[% for inherit in interits %], [[ inherit ]][% endfor %]
[%- 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 %]