修复BUG(修复无法管理员更新用户信息BUG):
parent
6b6f455249
commit
9121e7ad29
|
@ -235,7 +235,7 @@ class UserProfileSerializer(CustomModelSerializer):
|
|||
class Meta:
|
||||
model = UserProfile
|
||||
depth = 1
|
||||
exclude = ('password', 'secret', 'user_permissions', 'groups', 'is_superuser', 'date_joined')
|
||||
exclude = ('password', 'secret', 'user_permissions', 'groups', 'is_superuser', 'date_joined', 'creator')
|
||||
|
||||
|
||||
class ExportUserProfileSerializer(CustomModelSerializer):
|
||||
|
|
Loading…
Reference in New Issue