[Update] 修改用户profile序列类

This commit is contained in:
Bai
2020-05-28 15:02:53 +08:00
parent 54623a5b06
commit f3bc6c0b22
2 changed files with 39 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ class UserUpdatePKApi(UserQuerysetMixin, generics.UpdateAPIView):
user.save()
class UserProfileApi(generics.RetrieveAPIView):
class UserProfileApi(generics.RetrieveUpdateAPIView):
permission_classes = (IsAuthenticated,)
serializer_class = serializers.UserProfileSerializer