oshipka/vm_gen/templates/_model_m_n_py

5 lines
171 B
Plaintext
Raw Normal View History

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