Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#3490 closed (fixed)

[patch] Passing an iterable as choices to newforms. ChoiceField breaks.

Reported by: Chris.Wesseling@… Owned by: Adrian Holovaty
Component: Forms Version: master
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


Passing a Generator as choices breaks printing the form twice as well as validating passed data.

Attachments (1)

ChoiceField_iterable_choices_fix.patch (2.2 KB) - added by Chris.Wesseling@… 12 years ago.
Fixes ChoiceField(choices=( some generator )) bug.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Chris.Wesseling@…

Fixes ChoiceField(choices=( some generator )) bug.

comment:1 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [4549]) Fixed #3490 -- Fixed issue with newforms ChoiceField and generators as choices. Thanksfor the patch, Chris.Wesseling@…

comment:2 Changed 11 years ago by Chris.Wesseling@…

NP, thanks for the fast incorporation.

Note: See TracTickets for help on using tickets.
Back to Top