fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proper sorting of pictures in gallery view
[wolnelektury.git]
/
apps
/
polls
/
views.py
diff --git
a/apps/polls/views.py
b/apps/polls/views.py
index
ac1c360
..
c9cb5de
100644
(file)
--- a/
apps/polls/views.py
+++ b/
apps/polls/views.py
@@
-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])