Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9908: allow individual app index templates in the admin. Thank…

…s, arne.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a2dec37c413cc1b9fd205047e15602e4bc41de1f 1 parent da0c690
Jacob Kaplan-Moss authored
3  django/contrib/admin/sites.py
@@ -398,7 +398,8 @@ def app_index(self, request, app_label, extra_context=None):
398 398
             'root_path': self.root_path,
399 399
         }
400 400
         context.update(extra_context or {})
401  
-        return render_to_response(self.app_index_template or 'admin/app_index.html', context,
  401
+        return render_to_response(self.app_index_template or ('admin/%s/app_index.html' % app_label,
  402
+            'admin/app_index.html'), context,
402 403
             context_instance=template.RequestContext(request)
403 404
         )
404 405
 
1  docs/ref/contrib/admin/index.txt
@@ -1130,6 +1130,7 @@ Templates which may be overridden per app or model
1130 1130
 Not every template in ``contrib\admin\templates\admin`` may be overridden per
1131 1131
 app or per model. The following can:
1132 1132
 
  1133
+    * ``app_index.html``
1133 1134
     * ``change_form.html``
1134 1135
     * ``change_list.html``
1135 1136
     * ``delete_confirmation.html``

0 notes on commit a2dec37

Please sign in to comment.
Something went wrong with that request. Please try again.