#22716: The unique error message uses incorrect grammar
-------------------------------+--------------------
Reporter: jdufresne | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The default unique error message, found in `django.db.models.fields` class
`Field` attribute `default_error_messages`, reads as follows:
{{{
'unique': _('%(model_name)s with this %(field_label)s '
'already exists.'),
}}}
Where `field_label` is replaced with `capfirst(field.verbose_name)`. The
end result will appears something like: "Person with this Email already
exists."
This creates an uppercase word in the middle of the sentence, which is
incorrect English grammar. For this to use correct grammar the field
should not be capitalized.
--
Ticket URL: <https://code.djangoproject.com/ticket/22716>
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/052.484e9b2a61c5b8643471ce6930a22baa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.