X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9203d27cee887569ad260dd91d798df68a1d3ada..69a96efdb07b874a503845692a4cdb9355458beb:/apps/polls/views.py?ds=inline 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])