oshipka/vm_gen/templates/_model_m_n_py

6 lines
217 B
Plaintext
Raw Permalink Normal View History

2020-06-07 20:29:51 +02:00
[[ secondary.name ]] = db.Table('[[ secondary.name|camel_to_snake ]]',
[%- for column in secondary.columns %]
2020-06-04 15:24:18 +02:00
db.Column('[[ column.name ]]_id', db.Integer(), db.ForeignKey('[[ column.name ]].id')),
[%- endfor %]
)