Add a bit more context for "view person profile"
This commit is contained in:
parent
df43abf9d3
commit
fdb76fc56c
|
@ -232,10 +232,13 @@ class PeopleView(MasterView):
|
|||
"""
|
||||
self.viewing = True
|
||||
person = self.get_instance()
|
||||
employee = person.employee
|
||||
context = {
|
||||
'person': person,
|
||||
'instance': 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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue