This commit is contained in:
xuyue committed 2026-06-04 05:31:23 -06:00
1 parent f6e41dc349
commit b28301bbb1
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -78,8 +78,8 @@ class UserProfileAPI(AsyncAPIView):
profile = await UserProfile.objects.select_related("user").aget(user=user)
return self.success(UserProfileSerializer(profile, show_real_name=show_real_name).data)
@validate_serializer(EditUserProfileSerializer)
@login_required
@validate_serializer(EditUserProfileSerializer)
async def put(self, request):
data = request.data
user_profile = await UserProfile.objects.select_related("user").aget(user=request.user)