FormWizard doesn't work with NullableBooleanField
|Reported by:||LZ||Owned by:||Keith Bussell|
|Severity:||Keywords:||form formwizard nullablebooleanfield|
|Cc:||Keith Bussell||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Create a series of forms. Make the first one contain a NullableBooleanField. Then, place the forms in a (contrib.formtools.) Wizard.
If the user set the value of the field to "True", it will succeed on the first submit. However, when there is a second submit, it will fail with a cryptic Exception message. It turns out that there's a render_hash_failure.
This is my first time trying Django, so I only have a few hours experience, but I think the problem comes from
19 data = [(bf.name, bf.field.clean(bf.data) or ) for bf in form]
Change History (17)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|