From fdb76fc56c04c4823ec61924d4d71dd39b33c208 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 12 Apr 2019 12:55:09 -0500 Subject: [PATCH] Add a bit more context for "view person profile" --- tailbone/views/people.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone/views/people.py b/tailbone/views/people.py index ec201ac3..36539e07 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -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)