Improve mako template for additionnal imports.
This commit is contained in:
parent
f5415c3d66
commit
bbe4fd7f39
@ -19,7 +19,12 @@ depends_on = ${repr(depends_on)}
|
||||
# pylint: disable=wrong-import-position
|
||||
from alembic import op # noqa
|
||||
import sqlalchemy as sa # noqa
|
||||
${imports if imports else ""}
|
||||
% for imp in imports:
|
||||
% if loop.index == 0:
|
||||
|
||||
% endif
|
||||
${imp} # noqa
|
||||
% endfor
|
||||
# pylint: enable=wrong-import-position
|
||||
|
||||
def upgrade():
|
||||
|
Loading…
Reference in New Issue
Block a user