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

Added description and updated RoleView

This commit is contained in:
Mo 2021-08-16 23:47:04 +02:00
parent 3425947f3e
commit c2399be719
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -83,6 +83,7 @@ class UserView(SecureAdminModelView):
allow_blank=True, allow_blank=True,
blank_text="-", blank_text="-",
default=activeSemesterDefault, default=activeSemesterDefault,
description="Not fixed and users (including assistants) can change it.",
) )
class EditForm(CreateForm): class EditForm(CreateForm):
@ -182,8 +183,10 @@ class RoleView(SecureAdminModelView):
can_edit = False can_edit = False
can_delete = False can_delete = False
column_display_actions = False column_display_actions = False
can_export = False
can_set_page_size = False
column_list = ["name", "description"] column_list = ["name", "description", "permissions", "update_datetime"]
class SemesterView(SecureAdminModelView): class SemesterView(SecureAdminModelView):