Opened 18 years ago
Closed 18 years ago
#5737 closed (invalid)
CheckboxSelectMultiple when you use choices, required=False is not respected
| Reported by: | David Reynolds | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | david@… | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
if for example you do:
TOWN_CHOICES = (
('Norwich', 'Norwich'),
('Dereham','Dereham'),
)
town = forms.MultipleChoiceField(required=False, choices=TOWN_CHOICES, widget=forms.CheckboxSelectMultiple)
You cannot submit your form without selecting one of the choices, the form throws the following error:
Select a valid choice. That choice is not one of the available choices.
Change History (4)
comment:1 by , 18 years ago
| Cc: | added |
|---|
comment:2 by , 18 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 18 years ago
comment:4 by , 18 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
I'm closing this because I believe I misreported it.
Sorry.
Note:
See TracTickets
for help on using tickets.
Can anyone else confirm this behaviour, as I now can't recreate it!