Fix how we fetch employee history, for profile view
This commit is contained in:
parent
7b43164831
commit
6d929dd95a
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue