Skip to content

Views

UserAdmin

Bases: ModelView

Admin view for the User model.

Source code in hestia/extensions/sqladmin/views.py
 6
 7
 8
 9
10
11
12
13
14
15
16
class UserAdmin(ModelView, model=User):  # type: ignore
    """
    Admin view for the User model.
    """

    column_list = [
        User.id,
        User.username,
        User.hashed_password,
        User.user_type,
    ]