#20800: validation error does not give hint of  type mismatch for choices
------------------------------------+----------------------------
               Reporter:  ptone     |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Component:  Forms     |        Version:  master
               Severity:  Normal    |       Keywords:  validation
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+----------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20800>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.456bf620096afcdfd6b2d75949bafad5%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to