from models import db, User, Role
admin = Admin(app, name='Boost Admin')
admin.add_view(ModelView(User, db.session, category='model', endpoint=
    'model_view_user'))
admin.add_view(ModelView(Role, db.session, category='model', endpoint=
    'model_view_role'))
How to reference a ModelView in flask-admin