Add CORE Office URL to context for member data in profile view
This commit is contained in:
parent
099783ce62
commit
82da4b23ff
|
@ -71,3 +71,12 @@ class PersonView(base.PeopleView):
|
|||
self.rattail_config, customer['number'])
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue