#24010: Unable to use choice values instead of choice keys in form/field
validation
-------------------------------+-----------------------------------------
Reporter: karolyi | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 1.7
Severity: Normal | Keywords: field choices error display
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------------------------
Hey,
In `django.forms.fields.TypedChoiceField` and in
`django.db.models.fields.Field` I'd like to have the ability of outputting
the given choice value instead of the choice key in error messages (when
`error_messages['invalid_choice']` is used), if a choice value is
available.
This way, the end users could get a more understandable output when
filling out a form with errors.
--
Ticket URL: <https://code.djangoproject.com/ticket/24010>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.fad2230240ef5df777046cc7e5aeb0f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.