From 1b482b168804680f668f3efc7875963cb06ab28f Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Fri, 9 Oct 2015 14:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=94=E8=B5=9B=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E8=BF=94=E5=9B=9E=E4=BA=86=E5=85=A8=E9=83=A8=E7=9A=84?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/views.py b/contest/views.py index de03d5da..31cd67c4 100644 --- a/contest/views.py +++ b/contest/views.py @@ -252,7 +252,7 @@ class ContestProblemAdminAPIView(APIView): Q(description__contains=keyword)) contest_id = request.GET.get("contest_id", None) if contest_id: - contest_problem = contest_problems.filter(contest__id=contest_id).order_by("sort_index") + contest_problems = contest_problems.filter(contest__id=contest_id).order_by("sort_index") return paginate(request, contest_problems, ContestProblemSerializer)