From b4a454f956e7c73839a8491c58e6386da3e4e1a5 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 21 Jan 2006 22:41:56 +0000 Subject: [PATCH] magic-removal: Fixed #1253 -- Got admin doc for models working. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2099 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../templates/admin_doc/model_index.html | 15 ++++---- django/contrib/admin/urls.py | 2 +- django/contrib/admin/views/doc.py | 37 +++++++++++-------- 3 files changed, 31 insertions(+), 23 deletions(-) diff --git a/django/contrib/admin/templates/admin_doc/model_index.html b/django/contrib/admin/templates/admin_doc/model_index.html index 3183b577e1..2641225e87 100644 --- a/django/contrib/admin/templates/admin_doc/model_index.html +++ b/django/contrib/admin/templates/admin_doc/model_index.html @@ -8,18 +8,19 @@ {% block content %} -

Models Documentation

+

Model documentation

+ +{% regroup models by app_label as grouped_models %}
-{% regroup models|dictsort:"module" by module as grouped_models %} {% for group in grouped_models %}
-

{{ group.grouper }}

+

{{ group.grouper|capfirst }}

{% for model in group.list %} - + {% endfor %}
{{ model.class }}{{ model.object_name }}
@@ -32,11 +33,11 @@ {% block sidebar %}