From ed2b7779c29deeccde1160766ecc632107c5c2bd Mon Sep 17 00:00:00 2001 From: virusdefender Date: Fri, 20 May 2016 09:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AD=9B=E9=80=89=E6=AF=94=E8=B5=9B=E6=97=B6?= =?UTF-8?q?=E5=80=99=E7=9A=84server=20error?= 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 8f380dc6..25dd52df 100644 --- a/contest/views.py +++ b/contest/views.py @@ -422,7 +422,7 @@ def contest_list_page(request, page=1): # 筛选我能参加的比赛 join = request.GET.get("join", None) - if request.user.is_authenticated and join: + if request.user.is_authenticated() and join: contests = contests.filter(Q(contest_type__in=[1, 2]) | Q(groups__in=request.user.group_set.all())). \ filter(end_time__gt=datetime.datetime.now(), start_time__lt=datetime.datetime.now()) paginator = Paginator(contests, 20)