🐛 Fix: [#32] project 대표 설정 save() 추가

This commit is contained in:
sm4640
2025-04-28 21:54:31 +09:00
parent e810ec5f0e
commit 72f948cfb5

View File

@@ -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)