Fixes #2035: Minor cite formatting issues.
[wolnelektury.git] / apps / polls / views.py
index ac1c360..c9cb5de 100644 (file)
@@ -10,7 +10,7 @@ from forms import PollForm
 @require_http_methods(['GET', 'POST'])\r
 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':\r
         redirect_to = reverse('poll', args = [slug])