From 344bbb26bd03f74b0dd38be8d2a6292d9a0a6b26 Mon Sep 17 00:00:00 2001 From: sm4640 Date: Mon, 28 Apr 2025 21:55:02 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20[#32]=20portfolio=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 --- portfolios/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/portfolios/views.py b/portfolios/views.py index 00d33ed..92cc45f 100644 --- a/portfolios/views.py +++ b/portfolios/views.py @@ -57,6 +57,7 @@ class PortfolioSetRepresentAPIView(APIView): if before_represent := Portfolio.objects.filter(owner=user, is_represent=True).first(): before_represent.is_represent = False portfolio.is_represent = True + portfolio.save() return Response({"message": "change represent success"}, status=status.HTTP_200_OK)