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
3d23d1b4
Commit
3d23d1b4
authored
Aug 30, 2011
by
Christophe Siraut
Browse files
Fixing #892 continuation.
parent
6739d0ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings.py
View file @
3d23d1b4
...
@@ -5,7 +5,7 @@ from account.settings import *
...
@@ -5,7 +5,7 @@ from account.settings import *
from
urlauth.settings
import
*
from
urlauth.settings
import
*
# Turn off for production
# Turn off for production
DEBUG
=
Fals
e
DEBUG
=
Tru
e
TEMPLATE_DEBUG
=
DEBUG
TEMPLATE_DEBUG
=
DEBUG
PROJECT_DIR
=
os
.
path
.
normpath
(
os
.
path
.
dirname
(
__file__
))
PROJECT_DIR
=
os
.
path
.
normpath
(
os
.
path
.
dirname
(
__file__
))
...
...
sondage/views.py
View file @
3d23d1b4
...
@@ -153,7 +153,7 @@ def vote(request, poll_id):
...
@@ -153,7 +153,7 @@ def vote(request, poll_id):
if
request
.
method
==
'POST'
:
if
request
.
method
==
'POST'
:
form
=
BulletinForm
(
request
.
POST
,
initial
=
{
'poll'
:
poll
.
id
,})
form
=
BulletinForm
(
request
.
POST
,
initial
=
{
'poll'
:
poll
.
id
,})
vforms
=
[
[
VoteForm
(
request
.
POST
,
prefix
=
choice
)
]
for
choice
in
Choice
.
objects
.
filter
(
poll
=
poll
.
id
)
]
vforms
=
[
[
VoteForm
(
request
.
POST
,
prefix
=
choice
,
instance
=
choice
)
]
for
choice
in
Choice
.
objects
.
filter
(
poll
=
poll
.
id
)
]
if
form
.
is_valid
():
if
form
.
is_valid
():
if
request
.
user
.
is_authenticated
():
if
request
.
user
.
is_authenticated
():
...
...
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