From 288252ab379a8413e712fa8d26138bc64fed7783 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 20 Dec 2023 21:10:24 +0100 Subject: [PATCH] remove: useless function --- profiles/viewsets.py | 3 --- 1 file changed, 3 deletions(-) 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,)