Opened 18 years ago

Closed 18 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

Description

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@… 18 years ago.
Added escape() to values and options in CheckboxMultipleSelect

Download all attachments as: .zip

Change History (2)

by andy@…, 18 years ago

Attachment: escaping.diff added

Added escape() to values and options in CheckboxMultipleSelect

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in newforms.

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