def init_app(app): admin.add_view( AdminPolyModelView(CommentObject, db.session, name="Comments", menu_icon_type='glyph', menu_icon_value='glyphicon-comment'))
def init_app(app): admin.add_view( PrivateMessageAdminView(PrivateMessage, db.session, name="PrivateMessage", menu_icon_type='glyph', menu_icon_value='glyphicon-envelope'))
def init_app(app): app.register_blueprint(hn_bp) admin.add_view(AdminPolyModelView(Link, db.session, name="Links", menu_icon_type='glyph', menu_icon_value='glyphicon-resize-full')) admin.add_view(AdminPolyModelView(Topic, db.session, name="Topics", menu_icon_type='glyph', menu_icon_value='glyphicon-file'))
def init_app(app): app.register_blueprint(hn_bp) admin.add_view( AdminPolyModelView(Link, db.session, name="Links", menu_icon_type='glyph', menu_icon_value='glyphicon-resize-full')) admin.add_view( AdminPolyModelView(Topic, db.session, name="Topics", menu_icon_type='glyph', menu_icon_value='glyphicon-file'))
def init_app(app): admin.add_view(PrivateMessageAdminView(PrivateMessage, db.session, name="PrivateMessage", menu_icon_type='glyph', menu_icon_value='glyphicon-envelope'))
def init_app(app): admin.add_view(AdminPolyModelView(CommentObject, db.session, name="Comments", menu_icon_type='glyph', menu_icon_value='glyphicon-comment'))