17 lines
423 B
Plaintext
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 %] |