oshipka/vm_gen/templates/model_py
2020-06-06 13:33:39 +02:00

17 lines
348 B
Plaintext

from oshipka.persistance import db, ModelController, index_service
[%- if imports %]
[%- for import in imports %]
[[ import ]]
[%- endfor %]
[%- endif %]
[%- if type == 'm_n' %]
[% include "_model_m_n_py" %]
[%- else %]
[% include "_model_py" %]
[%- endif %]
[%- if searchable %]
index_service.searchables.append([[ name ]])
[%- endif %]