Opened 13 years ago

Closed 12 years ago

#2125 closed defect (fixed)

CheckboxMultipleSelectField only accepts strings for value in choices

Reported by: andy@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


CheckboxMultipleSelectFields will raise a TypeError if value (the first item) in one of the tuples in the choices list is not a string. MultipleSelectField and SelectField don't have this problem because they escape() the value (which stringifies it).

Attachments (1)

escaping.diff (838 bytes) - added by andy@… 13 years ago.
Added escape() to values and options in CheckboxMultipleSelect

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by andy@…

Attachment: escaping.diff added

Added escape() to values and options in CheckboxMultipleSelect

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Fixed in newforms.

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