oshipka/vm_gen/templates/model_py
Daniel Tsvetkov a567739eaf m_n
2020-06-07 20:29:51 +02:00

17 lines
351 B
Plaintext

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