Opened 9 years ago

Closed 9 years ago

#3405 closed (duplicate)

[patch] newforms: choices checking should unicode choices list before comparing to a value

Reported by: anton@… Owned by: adrian
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Hello everyone

There is a mistake in django/newforms/

when one uses ChoiceField to select a value from predefined choices it tries to validate selected choice against a list of string values, should be a list of unicode values as it's done in MultipleChoiceField

Without the patch one always gets "Select a valid choice. %s is not one of the available choices." ValidationError.

Patch works with my previous #3401

Change History (1)

comment:1 Changed 9 years ago by anton@…

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

sorry, duplicate (browser hung)

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