Commit fc857945 authored by chris's avatar chris

Fixing #892 continuation.

parent 3d23d1b4
......@@ -188,10 +188,9 @@ def vote(request, poll_id):
return HttpResponse(vorm.cleaned_data['choice'])
if not Vote.objects.filter(choice=choice,bulletin=bulletin):
vorm.cleaned_data['choice'] = choice
new = vorm.save(commit=False)
new.bulletin = bulletin
#new.choice = choice
new = Vote(choice=choice,bulletin=bulletin,comment=vorm.cleaned_data['comment'])
if vorm.cleaned_data['voice']:
new.voice = vorm.cleaned_data['voice']
new.save()
if new.voice:
choice.votecount += 1
......
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