Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
etch
nuages
Commits
944b9ebe
Commit
944b9ebe
authored
Aug 26, 2014
by
Christophe Siraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Anonymous poster cannot currently choose his name.
parent
79c11a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
meetingpoll/views.py
meetingpoll/views.py
+4
-0
No files found.
meetingpoll/views.py
View file @
944b9ebe
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
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