diff --git a/tailbone/views/people.py b/tailbone/views/people.py index 925333d8..39f4e13d 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -260,6 +260,7 @@ class PeopleView(MasterView): if employee: for history in sorted(employee.history, key=lambda h: h.start_date, reverse=True): data.append({ + 'uuid': history.uuid, 'start_date': six.text_type(history.start_date), 'end_date': six.text_type(history.end_date or ''), }) @@ -375,8 +376,8 @@ class PeopleView(MasterView): config.add_tailbone_permission_group('people_profile', "People Profile View") config.add_tailbone_permission('people_profile', 'people_profile.toggle_employee', "Toggle the person's Employee status") - # config.add_tailbone_permission('people_profile', 'people_profile.edit_employee_history', - # "Edit the person's Employee History records") + config.add_tailbone_permission('people_profile', 'people_profile.edit_employee_history', + "Edit the person's Employee History records") # view profile config.add_tailbone_permission(permission_prefix, '{}.view_profile'.format(permission_prefix),