From 4bfdad10deb877b230487385177d8077466aa73b Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Thu, 17 Sep 2015 10:15:05 +0800 Subject: [PATCH] =?UTF-8?q?submission=20=E8=BF=87=E6=BB=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest_submission/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contest_submission/views.py b/contest_submission/views.py index eb2caf1..59ee7fa 100644 --- a/contest_submission/views.py +++ b/contest_submission/views.py @@ -87,7 +87,10 @@ def contest_problem_submissions_list_page(request, contest_id, page=1): except Contest.DoesNotExist: return error_page(request, u"比赛不存在") - submissions = Submission.objects.filter(contest_id=contest_id) + submissions = Submission.objects.filter(contest_id=contest_id).\ + values("id", "contest_id", "problem_id", "result", "create_time", + "accepted_answer_time", "language", "user_id").order_by("-create_time") + # 封榜的时候只能看到自己的提交 if not contest.real_time_rank: