Commit 950b4f62 authored by Christophe Siraut's avatar Christophe Siraut

Fix #925: clear cookie when new anonymous poll.

parent 7b0c2c39
......@@ -29,6 +29,7 @@ def new(request):
return HttpResponseRedirect(reverse('choices', args=(str(poll.id),)))
else:
if request.user.is_anonymous():
request.session.clear()
messages.warning(request, _('You are not logged so you will not be able to modify your poll after creation or recieve notifications.'))
form = PollForm()
return render_to_response(
......
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