Add a bit more context for "view person profile"

This commit is contained in:
Lance Edgar 2019-04-12 12:55:09 -05:00
parent df43abf9d3
commit fdb76fc56c

View file

@ -232,10 +232,13 @@ class PeopleView(MasterView):
""" """
self.viewing = True self.viewing = True
person = self.get_instance() person = self.get_instance()
employee = person.employee
context = { context = {
'person': person, 'person': person,
'instance': person, 'instance': person,
'instance_title': self.get_instance_title(person), 'instance_title': self.get_instance_title(person),
'employee': employee,
'employee_history': employee.get_current_history() if employee else None,
} }
return self.render_to_response('view_profile', context) return self.render_to_response('view_profile', context)