From 5cefbf24dc52968ea7afd799b6dd0a663922f5aa Mon Sep 17 00:00:00 2001 From: sm4640 Date: Mon, 28 Apr 2025 22:09:58 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20[#32]=20project=20?= =?UTF-8?q?=EC=9D=B4=EC=A0=84=20=EB=8C=80=ED=91=9C=20=EB=82=B4=EB=A6=AC?= =?UTF-8?q?=EA=B8=B0=20save()=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/views.py b/projects/views.py index d111d6a..64c8da8 100644 --- a/projects/views.py +++ b/projects/views.py @@ -85,6 +85,7 @@ class ProjectSetRepresentAPIView(APIView): return Response({"message": "Not owner"}, status=status.HTTP_403_FORBIDDEN) if before_represent := Project.objects.filter(owner=user, is_represent=True).first(): before_represent.is_represent = False + before_represent.save() project.is_represent = True project.save() return Response({"message": "change represent success"}, status=status.HTTP_200_OK)