Expose CORE card number for members view
This commit is contained in:
parent
cfb416578c
commit
2d9759e021
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue