Opened 4 years ago

Closed 4 years ago

#21736 closed Uncategorized (needsinfo)

form wizard choice containing multiple choice field

Reported by: prithviraj.m.billa@… Owned by: Prithviraj
Component: Forms Version: 1.6
Severity: Normal Keywords: form wizard multiple select
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


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:

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

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

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")

Change History (2)

comment:1 Changed 4 years ago by Tim Graham

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.

comment:2 Changed 4 years ago by Tim Graham

Resolution: needsinfo
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top