[Django] #21736: form wizard choice containing multiple choice field

28 views
Skip to first unread message

Django

unread,
Jan 6, 2014, 9:41:01 AM1/6/14
to django-...@googlegroups.com
#21736: form wizard choice containing multiple choice field
-------------------------------------+-------------------------------------
Reporter: | Owner: Prithviraj
prithviraj.m.billa@… | Status: new
Type: Uncategorized | Version: 1.6
Component: Forms | Keywords: form wizard multiple
Severity: Normal | select
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
I have form wizard with a list of forms of which one contains multiple-
choice field. I have a problem evaluating the form wizard at the last
submit.

This is my initial form:

----

[[Image(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-
frc3/1424472_608715022529536_1773254433_n.jpg)]]

----

After submitting the form I checked the POST data, it is as follows

----

[[Image(https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-
prn2/1601580_608715299196175_551194172_n.jpg)]]

After the end of the form wizard at the last submit.
it redirects me to the form page with the multiple choice field and raises
an error

----

[[Image(https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-
frc3/1528575_608715279196177_1336282649_n.jpg)]]

----

[[Image(https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-
frc1/1002495_608715289196176_70850502_n.jpg)]]

I think multiple choice field in form is not saving as the list in the
session instead just a value.

----

My code for form wizard


{{{
class WizardEmployee(SessionWizardView):
template_name = "dashboard/wizard/wizard.html"
file_storage =
FileSystemStorage(location=os.path.join(settings.MEDIA_ROOT, 'photos'))
def done(self,form_list,**kwargs):
return HttpResponse("success")
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21736>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 8, 2014, 6:38:20 PM1/8/14
to django-...@googlegroups.com
#21736: form wizard choice containing multiple choice field
-------------------------------------+-------------------------------------
Reporter: | Owner:
prithviraj.m.billa@… | Prithviraj
Type: Uncategorized | Status: new
Component: Forms | Version: 1.6
Severity: Normal | Resolution:
Keywords: form wizard | Triage Stage:
multiple select | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

I'm not sure there's enough information in this report to determine
whether this is a bug in Django or a bug in your own code. Could you write
a test for Django's test suite that demonstrates the behavior? There are
some tests for form wizard in django/contrib/formtools/tests.

--
Ticket URL: <https://code.djangoproject.com/ticket/21736#comment:1>

Django

unread,
Jan 15, 2014, 12:00:59 PM1/15/14
to django-...@googlegroups.com
#21736: form wizard choice containing multiple choice field
-------------------------------------+-------------------------------------
Reporter: | Owner:
prithviraj.m.billa@… | Prithviraj
Type: Uncategorized | Status: closed
Component: Forms | Version: 1.6
Severity: Normal | Resolution: needsinfo

Keywords: form wizard | Triage Stage:
multiple select | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timo):

* status: new => closed
* resolution: => needsinfo


--
Ticket URL: <https://code.djangoproject.com/ticket/21736#comment:2>

Reply all
Reply to author
Forward
0 new messages