update acm helper

This commit is contained in:
2025-10-06 00:06:59 +08:00
parent 6d32e5de1e
commit cbe0e297fd
2 changed files with 65 additions and 28 deletions

View File

@@ -489,7 +489,6 @@ class MakeContestProblemPublicAPIView(APIView):
return self.error("Already be a public problem")
problem.is_public = True
problem.save()
# https://docs.djangoproject.com/en/1.11/topics/db/queries/#copying-model-instances
tags = problem.tags.all()
problem.pk = None
problem.contest = None