diff --git a/accountant/migrations/script.py.mako b/accountant/migrations/script.py.mako index 6191a83..712d479 100644 --- a/accountant/migrations/script.py.mako +++ b/accountant/migrations/script.py.mako @@ -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():