Opened 19 years ago
Closed 18 years ago
#2125 closed defect (fixed)
CheckboxMultipleSelectField only accepts strings for value in choices
Reported by: | 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)
Note:
See TracTickets
for help on using tickets.
Added escape() to values and options in CheckboxMultipleSelect