From db5e4e88f632d3e6728806863a7f2820ab22208d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 22 Aug 2024 19:38:33 -0500 Subject: [PATCH] fix: set sort defaults for users, roles --- src/wuttaweb/views/roles.py | 1 + src/wuttaweb/views/users.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/wuttaweb/views/roles.py b/src/wuttaweb/views/roles.py index fa7c8fc..bf4981d 100644 --- a/src/wuttaweb/views/roles.py +++ b/src/wuttaweb/views/roles.py @@ -55,6 +55,7 @@ class RoleView(MasterView): filter_defaults = { 'name': {'active': True}, } + sort_defaults = 'name' # TODO: master should handle this, possibly via configure_form() def get_query(self, session=None): diff --git a/src/wuttaweb/views/users.py b/src/wuttaweb/views/users.py index d05b8eb..9c25dc3 100644 --- a/src/wuttaweb/views/users.py +++ b/src/wuttaweb/views/users.py @@ -58,6 +58,7 @@ class UserView(MasterView): filter_defaults = { 'username': {'active': True}, } + sort_defaults = 'username' # TODO: master should handle this, possibly via configure_form() def get_query(self, session=None):