Commit 944b9ebe authored by chris's avatar chris

Anonymous poster cannot currently choose his name.

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