From 8ae8fd246abf7500982405c253d83541b011e2d4 Mon Sep 17 00:00:00 2001 From: esp Date: Fri, 28 Aug 2015 17:11:40 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=90=8E=E7=AB=AF-=E5=89=8D=E5=8F=B0]?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=94=E8=B5=9B=E5=88=97=E8=A1=A8=E4=BB=85?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=8F=AF=E5=8F=82=E5=8A=A0=E7=9A=84=E6=AF=94?= =?UTF-8?q?=E8=B5=9B=E7=9A=84=E9=97=AE=E9=A2=98,=E5=B0=8Fbug,=E5=90=A6?= =?UTF-8?q?=E5=88=99=E9=80=89=E6=8B=A9=E6=9F=A5=E7=9C=8B=E5=8F=AF=E5=8F=82?= =?UTF-8?q?=E5=8A=A0=E7=9A=84=E6=AF=94=E8=B5=9B=E6=9C=89=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=8F=AF=E8=A7=81=E7=9A=84=E6=AF=94?= =?UTF-8?q?=E8=B5=9B?= 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 e23b50e..4763bd8 100644 --- a/contest/views.py +++ b/contest/views.py @@ -348,7 +348,7 @@ def contest_list_page(request, page=1): # 筛选我能参加的比赛 join = request.GET.get("join", None) if join: - contests = Contest.objects.filter(Q(contest_type__in=[1, 2]) | Q(groups__in=request.user.group_set.all())).\ + 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)