From 7498a6f2cdbf8ee881672f2aeee1dcd06e774529 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 15 Jul 2020 22:17:54 -0500 Subject: [PATCH] Enable card number filter by default, for legacy customers grid --- tailbone_corepos/views/corepos/customers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone_corepos/views/corepos/customers.py b/tailbone_corepos/views/corepos/customers.py index 90e68a7..f7338e7 100644 --- a/tailbone_corepos/views/corepos/customers.py +++ b/tailbone_corepos/views/corepos/customers.py @@ -68,6 +68,9 @@ class CustomerView(CoreOfficeMasterView): def configure_grid(self, g): super(CustomerView, self).configure_grid(g) + g.filters['card_number'].default_active = True + g.filters['card_number'].default_verb = 'equal' + g.filters['first_name'].default_active = True g.filters['first_name'].default_verb = 'contains'