Opened 18 years ago

Closed 18 years ago

Last modified 18 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: 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)

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

Download all attachments as: .zip

Change History (3)

by Chris.Wesseling@…, 18 years ago

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

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Chris.Wesseling@…, 18 years ago

NP, thanks for the fast incorporation.

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