On 15/08/2013 4:57pm, Victor Hooi wrote:
Hi,
That works =):
<https://lh3.googleusercontent.com/-mks31U0PuKs/Ugx7iHJ2mVI/AAAAAAAAXyI/gPwj2aOfiEo/s1600/Screen+Shot+2013-08-15+at+4.55.48+PM.png>
I just found the same thing mentioned on SO as well:
http://stackoverflow.com/a/9111694
Hmm, I'm guessing this is a known gotcha and workaround, right? Is it
documented anywhere in the Django docs, or is it considered too much of
an edge case?
Personally, I think it is a Django bug. There are two cases. One is that
Django figures out what to display from the model class name (or field
name) all by itself. The other is that I decide what to display via
verbose_name and additionally for model classes, verbose_name_plural.
I think it should not be getting title case.
I did some digging in Django source and found it won't be easy for
someone like me to fix it. Hence the workaround.
Mike
Cheers,
Victor
On Thursday, 15 August 2013 15:08:00 UTC+10, Mike Dewhirst wrote:
On 15/08/2013 2:06pm, Victor Hooi wrote:
> For example, verbose_name-Plural on the main admin page (/admin)
still
> seems to insist on capitalising the first "i" - as in, it appears as
> "IOS clients", rather than "iOS clients", as it's set in class Meta:
>
Try verbose_name = " iOS Clients" with a leading space
--
You received this message because you are subscribed to the Google
Groups "Django users" 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].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django
users" 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].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.