fix: add grid links for Members
This commit is contained in:
parent
34e9528f4b
commit
d1de2389a5
|
@ -100,6 +100,12 @@ class MemberView(CoreOpMasterView):
|
|||
g.set_renderer('last_name', self.render_customer_attr)
|
||||
g.set_sorter('last_name', op_model.CustomerClassic.last_name)
|
||||
|
||||
# links
|
||||
if self.has_perm('view'):
|
||||
g.set_link('card_number')
|
||||
g.set_link('first_name')
|
||||
g.set_link('last_name')
|
||||
|
||||
def render_customer_attr(self, member, key, value):
|
||||
""" """
|
||||
customer = member.customers[0]
|
||||
|
|
Loading…
Reference in a new issue