oshipka/vm_gen/templates/model_py

16 lines
375 B
Plaintext
Raw Normal View History

2021-05-09 21:34:11 +02:00
from oshipka.persistance import db, ModelController, index_service, LiberalBoolean, Ownable
2020-06-03 18:11:37 +02:00
[%- if imports %]
[%- for import in imports %]
[[ import ]]
[%- endfor %]
[%- endif %]
2020-06-03 16:00:51 +02:00
2020-06-07 20:29:51 +02:00
[%- for secondary in _secondaries %]
2020-06-04 15:24:18 +02:00
[% include "_model_m_n_py" %]
2020-06-07 20:29:51 +02:00
[%- endfor %]
2020-06-04 15:24:18 +02:00
[% include "_model_py" %]
2020-06-06 13:33:39 +02:00
[%- if searchable %]
index_service.searchables.append([[ name ]])
2020-06-04 15:24:18 +02:00
[%- endif %]