From ac5f29484237e9d00b4c599d065ac535fcc405e4 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Thu, 29 Oct 2015 17:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=90=8E=E7=AB=AF=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contest/views.py b/contest/views.py index 29c943a7..83aa1d04 100644 --- a/contest/views.py +++ b/contest/views.py @@ -186,8 +186,7 @@ class ContestProblemAdminAPIView(APIView): created_by=request.user, hint=data["hint"], contest=contest, - sort_index=data["sort_index"], - score=data["score"]) + sort_index=data["sort_index"]) return success_response(ContestProblemSerializer(contest_problem).data) else: return serializer_invalid_response(serializer) @@ -221,7 +220,6 @@ class ContestProblemAdminAPIView(APIView): contest_problem.hint = data["hint"] contest_problem.visible = data["visible"] contest_problem.sort_index = data["sort_index"] - contest_problem.score = data["score"] contest_problem.last_update_time = now() contest_problem.save() return success_response(ContestProblemSerializer(contest_problem).data)