Capitalized verbose names for models
|Reported by:||Owned by:||nobody|
|Severity:||Normal||Keywords:||admin, verbose_name, nfa-someday i18n-nofix|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There is a difference between models and forms, now the preferred format is:
class Contact(models.Model): email = models.CharField(verbose_name=_('email')) class ContactForm(forms.Form): email = forms.CharField(label=_('Email'))
Why is once 'email' and once 'Email'? I think it is quite
But it is specially bad for translators. Example: I have a model with
ten fields. I use form_for_model and form_for_instance. I realize that
I need a form with seven fields from model and some new fields. So I
have to translate the fields again - gettext doesn't know that 'email'
is similar to 'Email'.
I think it should be possible (not necessary) to use capitalized
verbose names in models. It means to uncapitalized some words in admin
- but it is possible, I do it in my personal branch.
I thought that this kind of change should be sent to django-developers mailing list first. But there was no answer so there is a ticket.
Ticket #5426 is precondition for it.
I would like to create patch - if you think that it can be applied.
Change History (21)
comment:16 Changed 6 years ago by
|Summary:||[newform-admin] - capitalized verbose names for models → Capitalized verbose names for models|