update acm helper

This commit is contained in:
xuyue committed 2025-10-06 00:06:59 +08:00
1 parent 6d32e5de1e
commit cbe0e297fd
2 files changed
+65 -28

No files matched your search

-1
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