diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-05-10 18:06:25 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-05-10 18:09:07 +0200 |
| commit | 4cf82e5bcf87e0d5419d941c2ef7ec8855801319 (patch) | |
| tree | ba622fb4b465d736bde7acd25512a9b8a5b4e0fe /django | |
| parent | edecbb551bf8e8d0915c6c563ce9f880c59f8d95 (diff) | |
Fixed #21685 -- Displayed app verbose name in admindocs model index
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admindocs/templates/admin_doc/model_index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/admindocs/templates/admin_doc/model_index.html b/django/contrib/admindocs/templates/admin_doc/model_index.html index f48f80dd9f..4b897c318b 100644 --- a/django/contrib/admindocs/templates/admin_doc/model_index.html +++ b/django/contrib/admindocs/templates/admin_doc/model_index.html @@ -17,12 +17,12 @@ <h1>{% trans 'Model documentation' %}</h1> -{% regroup models by app_label as grouped_models %} +{% regroup models by app_config as grouped_models %} <div id="content-main"> {% for group in grouped_models %} <div class="module"> -<h2 id="app-{{ group.grouper }}">{{ group.grouper|capfirst }}</h2> +<h2 id="app-{{ group.grouper.label }}">{{ group.grouper.verbose_name }} ({{ group.grouper.name }})</h2> <table class="xfull"> {% for model in group.list %} @@ -42,9 +42,9 @@ <div class="module"> <h2>{% trans 'Model groups' %}</h2> <ul> -{% regroup models by app_label as grouped_models %} +{% regroup models by app_config as grouped_models %} {% for group in grouped_models %} - <li><a href="#app-{{ group.grouper }}">{{ group.grouper|capfirst }}</a></li> + <li><a href="#app-{{ group.grouper.label }}">{{ group.grouper.verbose_name }}</a></li> {% endfor %} </ul> </div> |
