oshipka/vm_gen/templates/model_py
2021-05-09 21:34:11 +02:00

16 lines
375 B
Plaintext

from oshipka.persistance import db, ModelController, index_service, LiberalBoolean, Ownable
[%- 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 %]