Reputation: 2400
Django automatically capitalizes the first letter of the verbose_name of a field in a model. I'd like it to be lower case. Is there a way to do that?
Upvotes: 2
Views: 717
Reputation: 2400
A workable but somewhat kludgy solution that I am going to use is to make the first character of my verbose_name strings the unicode Zero Width Space (\u200B).
Upvotes: 1
Reputation: 2393
Override template 'admin/index.html' and change
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
to
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name|lower }}</a></th>
Upvotes: 2