Example #1
0
def init_app(app):
    admin.add_view(
        AdminPolyModelView(CommentObject,
                           db.session,
                           name="Comments",
                           menu_icon_type='glyph',
                           menu_icon_value='glyphicon-comment'))
Example #2
0
def init_app(app):
    admin.add_view(
        PrivateMessageAdminView(PrivateMessage,
                                db.session,
                                name="PrivateMessage",
                                menu_icon_type='glyph',
                                menu_icon_value='glyphicon-envelope'))
Example #3
0
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'))
Example #4
0
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'))
Example #5
0
def init_app(app):
    admin.add_view(PrivateMessageAdminView(PrivateMessage, db.session,
                                      name="PrivateMessage",
                                      menu_icon_type='glyph',
                                      menu_icon_value='glyphicon-envelope'))
Example #6
0
def init_app(app):
    admin.add_view(AdminPolyModelView(CommentObject, db.session,
                                      name="Comments",
                                      menu_icon_type='glyph',
                                      menu_icon_value='glyphicon-comment'))