From 72f948cfb5f9fe37b718e8b69b39b42cc1d2c350 Mon Sep 17 00:00:00 2001 From: sm4640 Date: Mon, 28 Apr 2025 21:54:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20[#32]=20project=20?= =?UTF-8?q?=EB=8C=80=ED=91=9C=20=EC=84=A4=EC=A0=95=20save()=20=EC=B6=94?= =?UTF-8?q?=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 56e466b..d111d6a 100644 --- a/projects/views.py +++ b/projects/views.py @@ -86,6 +86,7 @@ class ProjectSetRepresentAPIView(APIView): if before_represent := Project.objects.filter(owner=user, is_represent=True).first(): before_represent.is_represent = False project.is_represent = True + project.save() return Response({"message": "change represent success"}, status=status.HTTP_200_OK)