Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
950b4f62
Commit
950b4f62
authored
May 20, 2013
by
Christophe Siraut
Browse files
Fix #925: clear cookie when new anonymous poll.
parent
7b0c2c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
meetingpoll/views.py
View file @
950b4f62
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment