1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Replaced Options.object_name.lower() by Options.model_name.

Thanks Simon for the suggestion.

Also removed inappropriate lowercasing of app labels in migrations.
Unlike model names, they are case sensitive.
This commit is contained in:
Aymeric Augustin
2013-12-29 18:42:12 +01:00
parent 308960b92a
commit 20d487c27b
9 changed files with 10 additions and 10 deletions

View File

@@ -27,7 +27,7 @@
<table class="xfull">
{% for model in group.list %}
<tr>
<th><a href="{% url 'django-admindocs-models-detail' app_label=model.app_label model_name=model.object_name.lower %}">{{ model.object_name }}</a></th>
<th><a href="{% url 'django-admindocs-models-detail' app_label=model.app_label model_name=model.model_name %}">{{ model.object_name }}</a></th>
</tr>
{% endfor %}
</table>