fix: set sort defaults for users, roles
This commit is contained in:
parent
122c6650d5
commit
db5e4e88f6
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue