+ +
+

app.views.admin

+

SuperUser/Admin portal using flask-admin

+
+

Module Contents

+
+

Classes

+ ++++ + + + + + +

ModelView

Our extended ModelView Class

+
+
+

Attributes

+ ++++ + + + + + +

admin

Initialised Admin Portal

+
+
+app.views.admin.admin
+

Initialised Admin Portal

+
+ +
+
+class app.views.admin.ModelView(model, session, name=None, category=None, endpoint=None, url=None, static_folder=None, menu_class_name=None, menu_icon_type=None, menu_icon_value=None)
+

Bases: flask_admin.contrib.sqla.ModelView

+

Our extended ModelView Class

+

Refer to Flask-Admin Docs for more details

+

https://flask-admin.readthedocs.io/en/latest/introduction/?highlight=ModelView#modelview-configuration-attributes

+
+
+is_accessible(self)
+

This function checks if a user should be given access or not

+
+ +
+ +
+
+
+ + +