修复BUG(修复无法管理员更新用户信息BUG):

pull/29/head
李强 2021-05-12 01:01:12 +08:00
parent 6b6f455249
commit 9121e7ad29
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class UserProfileSerializer(CustomModelSerializer):
class Meta: class Meta:
model = UserProfile model = UserProfile
depth = 1 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): class ExportUserProfileSerializer(CustomModelSerializer):