Add CORE Office URL to context for member data in profile view

This commit is contained in:
Lance Edgar 2020-03-18 11:31:23 -05:00
parent 099783ce62
commit 82da4b23ff

View file

@ -71,3 +71,12 @@ class PersonView(base.PeopleView):
self.rattail_config, customer['number']) self.rattail_config, customer['number'])
return data return data
def get_context_member(self, member):
data = super(PersonView, self).get_context_member(member)
# add CORE Office URL for member account
data['view_corepos_url'] = core_office_customer_account_url(
self.rattail_config, member['id'])
return data