diff --git a/tailbone_corepos/views/members.py b/tailbone_corepos/views/members.py index cca122f..298b1dd 100644 --- a/tailbone_corepos/views/members.py +++ b/tailbone_corepos/views/members.py @@ -52,6 +52,7 @@ class MemberViewSupplement(ViewSupplement): labels = { 'corepos_account_id': "CORE-POS Account ID", + 'corepos_card_number': "CORE-POS Card Number", } def get_grid_query(self, query): @@ -61,9 +62,11 @@ class MemberViewSupplement(ViewSupplement): def configure_grid(self, g): model = self.model g.set_filter('corepos_account_id', model.CoreMember.corepos_account_id) + g.set_filter('corepos_card_number', model.CoreMember.corepos_card_number) def configure_form(self, f): f.append('corepos_account_id') + f.append('corepos_card_number') def get_version_child_classes(self): model = self.model