Commit 944b9ebe authored by Christophe Siraut's avatar Christophe Siraut
Browse files

Anonymous poster cannot currently choose his name.

parent 79c11a10
......@@ -78,6 +78,10 @@ def editchoices(request, poll_id):
for v in votes:
if request.user.is_anonymous(): # Anonymous has voted...
key = 'has_voted-' +
request.session[key] = True # This writes cookie
request.session['name'] = voter # This writes cookie
return HttpResponseRedirect(reverse('meetingpoll', args=(str(,)))
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