Show verbose column name in list view (fixes #236)

This commit is contained in:
Danilo Bargen 2013-07-06 11:53:46 +02:00
parent 3e31974b39
commit ce5566be82

View file

@ -71,7 +71,7 @@
{% if forloop.first and attr == "__str__" %} {% if forloop.first and attr == "__str__" %}
<th>{{ model_name|capfirst }}</th> <th>{{ model_name|capfirst }}</th>
{% else %} {% else %}
<th>{{ attr }}</th> <th>{{ model|model_attr_verbose_name:attr|capfirst }}</th>
{% endif%} {% endif%}
{% endfor %} {% endfor %}
</thead> </thead>