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)