#3490 closed (fixed)
[patch] Passing an iterable as choices to newforms. ChoiceField breaks.
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | newforms ChoiceField iterable choices | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Passing a Generator as choices breaks printing the form twice as well as validating passed data.
Attachments (1)
Change History (3)
by , 19 years ago
| Attachment: | ChoiceField_iterable_choices_fix.patch added |
|---|
comment:1 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixes ChoiceField(choices=( some generator )) bug.