#24341: Subclasses of django.contrib.postgres.forms.ranges.BaseRangeField should
have more specific error messages
----------------------------------+----------------------------
Reporter: void | Owner:
Type: New feature | Status: new
Component: contrib.postgres | Version: 1.8alpha1
Severity: Normal | Keywords: i18n, postgres
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+----------------------------
I was translating new contrib.postgres strings on transifex and noticed
that all range fields use the same error message: "Enter two valid
values".
I suppose it may be misleading for the user of those fields, as the type
of those values is not explicitly specified.
I propose that each subclass of BaseRangeField - IntegerRangeField,
FloatRangeField, etc. to have its own 'invalid' error message - e.g.
"Enter two valid integers", "Enter two valid dates", etc.
--
Ticket URL: <https://code.djangoproject.com/ticket/24341>
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/047.11f3df97181a6df2324237a4d9dd97e1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.