X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9203d27cee887569ad260dd91d798df68a1d3ada..5667153616be3469413bc0fe8925bbbc4937be70:/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])