删除problem中多余的代码

This commit is contained in:
hohoTT
2015-08-16 16:52:26 +08:00
parent 277ee83b0f
commit 30348f0c5d
3 changed files with 24 additions and 1 deletions

View File

@@ -28,6 +28,11 @@ def problem_page(request, problem_id):
return render(request, "oj/problem/problem.html", {"problem": problem, "samples": json.loads(problem.samples)})
class ProblemTagAdminAPIView(APIView):
def get(self, request):
return success_response(ProblemTagSerializer(ProblemTag.objects.all(), many=True).data)
class ProblemAdminAPIView(APIView):
def post(self, request):
"""