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
fc857945
Commit
fc857945
authored
Aug 30, 2011
by
Christophe Siraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing #892 continuation.
parent
3d23d1b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sondage/views.py
sondage/views.py
+3
-4
No files found.
sondage/views.py
View file @
fc857945
...
@@ -188,10 +188,9 @@ def vote(request, poll_id):
...
@@ -188,10 +188,9 @@ def vote(request, poll_id):
return
HttpResponse
(
vorm
.
cleaned_data
[
'choice'
])
return
HttpResponse
(
vorm
.
cleaned_data
[
'choice'
])
if
not
Vote
.
objects
.
filter
(
choice
=
choice
,
bulletin
=
bulletin
):
if
not
Vote
.
objects
.
filter
(
choice
=
choice
,
bulletin
=
bulletin
):
vorm
.
cleaned_data
[
'choice'
]
=
choice
new
=
Vote
(
choice
=
choice
,
bulletin
=
bulletin
,
comment
=
vorm
.
cleaned_data
[
'comment'
])
new
=
vorm
.
save
(
commit
=
False
)
if
vorm
.
cleaned_data
[
'voice'
]:
new
.
bulletin
=
bulletin
new
.
voice
=
vorm
.
cleaned_data
[
'voice'
]
#new.choice = choice
new
.
save
()
new
.
save
()
if
new
.
voice
:
if
new
.
voice
:
choice
.
votecount
+=
1
choice
.
votecount
+=
1
...
...
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