blob: f9ea549af5d139828dcfed8012ba3288b8ced802 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
:mod:`app.views.admin`
======================
.. py:module:: app.views.admin
.. autoapi-nested-parse::
SuperUser/Admin portal using flask-admin
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
app.views.admin.ModelView
Attributes
~~~~~~~~~~
.. autoapisummary::
app.views.admin.admin
.. data:: admin
Initialised Admin Portal
.. class:: 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: :py:obj:`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
.. method:: is_accessible(self)
This function checks if a user should be given access or not
|