修改错误

This commit is contained in:
sxw 2015-12-05 16:29:07 +08:00
parent 85b2fef22d
commit 7af2c433c4

View File

@ -92,6 +92,7 @@ def check_user_contest_permission(func):
else: else:
return render(request, "oj/contest/no_contest_permission.html", return render(request, "oj/contest/no_contest_permission.html",
{"reason": "password_protect", "show_tab": False, "contest": contest}) {"reason": "password_protect", "show_tab": False, "contest": contest})
# 比赛没有开始 # 比赛没有开始
if contest.status == CONTEST_NOT_START: if contest.status == CONTEST_NOT_START:
if request.is_ajax(): if request.is_ajax():