From 3559358bbdccb93c848a9b98c08cdf3783807558 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 20 May 2013 15:29:27 +0200 Subject: [PATCH] Polls: show only open polls --- apps/polls/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/polls/views.py b/apps/polls/views.py index ac1c36028..c9cb5ded9 100644 --- a/apps/polls/views.py +++ b/apps/polls/views.py @@ -10,7 +10,7 @@ from forms import PollForm @require_http_methods(['GET', 'POST']) def poll(request, slug): - poll = get_object_or_404(Poll, slug = slug) + poll = get_object_or_404(Poll, slug = slug, open = True) if request.method == 'POST': redirect_to = reverse('poll', args = [slug]) -- 2.20.1