From 6d929dd95a5bf9bbc1f2be3fc5e2904fc2b9413a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 28 Feb 2020 13:10:25 -0600 Subject: [PATCH] Fix how we fetch employee history, for profile view --- tailbone/views/people.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/people.py b/tailbone/views/people.py index e3e1c8e8..c1eb2dfb 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -261,7 +261,7 @@ class PeopleView(MasterView): def get_context_employee_history(self, employee): data = [] if employee: - for history in sorted(employee.history, key=lambda h: h.start_date, reverse=True): + for history in employee.sorted_history(reverse=True): data.append({ 'uuid': history.uuid, 'start_date': six.text_type(history.start_date),