From ef1ae5f98db061b09683e41bf6a8182a5ae94913 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 2 Aug 2021 09:07:03 -0500 Subject: [PATCH] Expose card number filter by default, for `meminfo` grid --- tailbone_corepos/views/corepos/members.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tailbone_corepos/views/corepos/members.py b/tailbone_corepos/views/corepos/members.py index 6e485cb..9134e2b 100644 --- a/tailbone_corepos/views/corepos/members.py +++ b/tailbone_corepos/views/corepos/members.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2020 Lance Edgar +# Copyright © 2010-2021 Lance Edgar # # This file is part of Rattail. # @@ -103,6 +103,9 @@ class MemberView(CoreOfficeMasterView): g.set_sort_defaults('card_number') + g.filters['card_number'].default_active = True + g.filters['card_number'].default_verb = 'equal' + g.set_link('card_number') g.set_link('first_name') g.set_link('last_name')