allow users to edit their first and last name

This commit is contained in:
Wayne Witzel III
2016-08-23 09:55:00 -04:00
parent 965827ca4e
commit 2fb386b23c
2 changed files with 3 additions and 3 deletions

View File

@@ -1318,7 +1318,7 @@ class UserDetail(RetrieveUpdateDestroyAPIView):
can_admin = request.user.can_access(User, 'admin', obj, request.data)
su_only_edit_fields = ('is_superuser', 'is_system_auditor')
admin_only_edit_fields = ('last_name', 'first_name', 'username', 'is_active')
admin_only_edit_fields = ('username', 'is_active')
fields_to_check = ()
if not request.user.is_superuser: