2020-07-08 14:38:55 +02:00
|
|
|
from oshipka.persistance import db, ModelController, index_service, LiberalBoolean[% for inherit in interits %], [[ inherit ]][% endfor %]
|
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 %]
|