Opened 9 years ago

Closed 8 years ago

#2125 closed defect (fixed)

CheckboxMultipleSelectField only accepts strings for value in choices

Reported by: andy@… Owned by: adrian
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: UI/UX:

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

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by andy@…

Added escape() to values and options in CheckboxMultipleSelect

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in newforms.

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