diff --git a/profiles/viewsets.py b/profiles/viewsets.py index 445e2c7..6e73ad8 100644 --- a/profiles/viewsets.py +++ b/profiles/viewsets.py @@ -31,9 +31,6 @@ class ProfileViewSet(viewsets.ModelViewSet): profile["avatar_url"] = profile["avatar_url"][profile["avatar_url"].find("static") - 1:] return Response(serializer.data) - def perform_create(self, serializer): - serializer.save(user=self.request.user) - class MyProfileViewSet(viewsets.ModelViewSet): permission_classes = (permissions.IsAuthenticated,)