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)