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
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue