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
6739d0ea
Commit
6739d0ea
authored
Aug 30, 2011
by
Christophe Siraut
Browse files
Fixing #892: Problème suite à la migration.
parent
90aef5c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
sondage/views.py
View file @
6739d0ea
...
...
@@ -122,7 +122,7 @@ def editchoices(request, poll_id):
if
Choice
.
objects
.
filter
(
poll
=
poll_id
).
count
()
==
0
:
# Sall we replace next line with something like OrderedItemFormset(extra=2)
OrderedItemFormset
=
get_ordereditem_formset
(
ChoiceForm
,
extra
=
1
,
can_delete
=
True
)
vforms
=
OrderedItemFormset
()
vforms
=
OrderedItemFormset
(
instance
=
poll
)
else
:
vforms
=
OrderedItemFormset
(
instance
=
poll
)
...
...
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