1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Remove RoleView

This commit is contained in:
Mo 2022-05-29 17:32:58 +02:00
parent dd4908cc45
commit 1398a9bb92

View file

@ -263,22 +263,6 @@ class UserView(SecureAdminModelView):
) )
class RoleView(SecureAdminModelView):
can_export = False
can_set_page_size = False
can_create = False
can_edit = False
can_delete = False
column_display_actions = False
column_list = [
"name",
"description",
"permissions",
"update_datetime",
]
class SemesterView(SecureAdminModelView): class SemesterView(SecureAdminModelView):
class CreateForm(Form): class CreateForm(Form):
def defaultFormLabel(): def defaultFormLabel():
@ -1597,7 +1581,6 @@ adminSpace.add_view(PartView(Part, db.session))
adminSpace.add_view(AssistantView(Assistant, db.session)) adminSpace.add_view(AssistantView(Assistant, db.session))
adminSpace.add_view(AdminView(Admin, db.session)) adminSpace.add_view(AdminView(Admin, db.session))
adminSpace.add_view(UserView(User, db.session)) adminSpace.add_view(UserView(User, db.session))
adminSpace.add_view(RoleView(Role, db.session))
adminSpace.add_view(ProgramView(Program, db.session)) adminSpace.add_view(ProgramView(Program, db.session))
adminSpace.add_view(ImportView(name="Import")) adminSpace.add_view(ImportView(name="Import"))
adminSpace.add_view(ActionsView(name="Actions")) adminSpace.add_view(ActionsView(name="Actions"))