X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9203d27cee887569ad260dd91d798df68a1d3ada..41c9c850bfd66107825bf7ed34ab543f7652b0bc:/apps/polls/views.py 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])