Commit 30efbad6 authored by chris's avatar chris

Fix bug on non-existent choice

parent de7b6069
nuages (0.20140820) UNRELEASED; urgency=low
nuages (0.20140827) UNRELEASED; urgency=low
* Initial release.
-- Christophe Siraut <d@tobald.eu.org> Mon, 21 Jul 2014 17:18:01 +0200
-- Christophe Siraut <d@tobald.eu.org> Wed, 27 Aug 2014 12:43:19 +0200
......@@ -184,7 +184,7 @@ def vote(request, poll_id):
try:
choice = Choice.objects.get(choice=vorm.cleaned_data['choice'], poll=poll)
except:
return render(request, vorm.cleaned_data['choice'])
continue
if not Vote.objects.filter(choice=choice, bulletin=bulletin):
new = Vote(choice=choice, bulletin=bulletin, comment=vorm.cleaned_data['comment'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment