Create __init__.py

This commit is contained in:
deflax 2018-02-28 17:21:24 +02:00 committed by GitHub
parent 4b72d75490
commit 09edea776a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,16 @@
from flask_admin import Admin
...
from fadmin import *
admin = Admin(
app,
name='μAdmin',
template_mode='bootstrap3',
index_view=MyAdminIndexView(
url='/fadmin'
),
)
from app.models import User, Order
admin.add_view(MyModelView(User, db.session))
admin.add_view(OrderView(Order, db.session))