#15069: ValidationError message isn't helpful in tracking down the field that
fails
validation
-------------------------------------+-------------------------------------
Reporter: Steve Steiner | Owner:
<ssteinerX@…> | anubhav9042
Type: New feature | Status: assigned
Component: Forms | Version: master
Severity: Normal | Resolution:
Keywords: ValidationError, | Triage Stage: Accepted
exception, error message | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by anubhav9042):
The error messages in forms.fields in Date and Time related field do not
even mention what is the correct format.
Probably the errors earlier were gathered from models.fields, but now if
date is wrong, we get only 'Enter a valid date/time.'
I think we should atleast update those messages to the previous state
where they tell what is the correct format, i.e. specifying `YYYY-MM-DD
HH:MM[:ss[.uuuuuu]]` for `DateTimeField` and other related or similar ones
or else if someone enters wrong in forms, we only get: `Enter valid
date/time.`
--
Ticket URL: <https://code.djangoproject.com/ticket/15069#comment:10>
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/093.bd1cdf7b14db8a96373a85b6bfc67ac6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.