1
0
Fork 0

fix: set sort defaults for users, roles

This commit is contained in:
Lance Edgar 2024-08-22 19:38:33 -05:00
parent 122c6650d5
commit db5e4e88f6
2 changed files with 2 additions and 0 deletions

View file

@ -55,6 +55,7 @@ class RoleView(MasterView):
filter_defaults = { filter_defaults = {
'name': {'active': True}, 'name': {'active': True},
} }
sort_defaults = 'name'
# TODO: master should handle this, possibly via configure_form() # TODO: master should handle this, possibly via configure_form()
def get_query(self, session=None): def get_query(self, session=None):

View file

@ -58,6 +58,7 @@ class UserView(MasterView):
filter_defaults = { filter_defaults = {
'username': {'active': True}, 'username': {'active': True},
} }
sort_defaults = 'username'
# TODO: master should handle this, possibly via configure_form() # TODO: master should handle this, possibly via configure_form()
def get_query(self, session=None): def get_query(self, session=None):