Commit 3d23d1b4 authored by Christophe Siraut's avatar Christophe Siraut
Browse files

Fixing #892 continuation.

parent 6739d0ea
...@@ -5,7 +5,7 @@ from account.settings import * ...@@ -5,7 +5,7 @@ from account.settings import *
from urlauth.settings import * from urlauth.settings import *
# Turn off for production # Turn off for production
DEBUG = False DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = os.path.normpath(os.path.dirname(__file__)) PROJECT_DIR = os.path.normpath(os.path.dirname(__file__))
......
...@@ -153,7 +153,7 @@ def vote(request, poll_id): ...@@ -153,7 +153,7 @@ def vote(request, poll_id):
if request.method == 'POST': if request.method == 'POST':
form = BulletinForm(request.POST,initial={'poll': poll.id,}) form = BulletinForm(request.POST,initial={'poll': poll.id,})
vforms = [ [VoteForm(request.POST, prefix=choice) ] for choice in Choice.objects.filter(poll=poll.id) ] vforms = [ [VoteForm(request.POST, prefix=choice, instance=choice) ] for choice in Choice.objects.filter(poll=poll.id) ]
if form.is_valid(): if form.is_valid():
if request.user.is_authenticated(): if request.user.is_authenticated():
......
Supports Markdown
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