validation error does not give hint of type mismatch for choices
|Reported by:||ptone||Owned by:||nobody|
|Cc:||eromijn@…, Salem.Mike.Z.@…||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you have a choices list of ((0, 'label'),) set to a charfield though 1.5 you would get a validation error that looked like:
Value u'0' is not a valid choice.
Currently you get a validation error of:
Select a valid choice. 0 is not one of the available choices.
This is less helpful as the displayed error does not indicate the type.
The user generally doesn't know about the value part of choices, so this was always confusing to users - but that part is not new and is not related to this regression.
Change History (5)
comment:3 Changed 22 months ago by anonymous
- Resolution set to needsinfo
- Status changed from new to closed