Opened 13 years ago
Closed 13 years ago
#11812 closed (invalid)
Formset with select widget and extra fields won't validate
Reported by: | Afief | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Since a select field passes the first choice as it's default value(instead of None or ) a django formset with extra fields will interpret that form as partially filled and raise an error on any other required fields that aren't filled.
The workaround I'm currently using is to set initial=(first choice) for that field
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Please provide some actual code to show how to recreate the problem you are trying to report. I don't know what you mean by a "formset with extra fields", for example. A formset contains forms, not fields. You should be able to trim down your actual code to a very minimal example to demonstrate the problem, and post that. As it is this ticket is too vague to be considered valid.