summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 14:13:59 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 14:13:59 +0000
commita2dec37c413cc1b9fd205047e15602e4bc41de1f (patch)
tree5bae12cba56bc4d562d96f5a9c88a3aafe58f04d /django
parentda0c6908e8b55af37862eb643365ac6fb83e948b (diff)
Fixed #9908: allow individual app index templates in the admin. Thanks, arne.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/sites.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py
index e2b246aec3..8b579853d4 100644
--- a/django/contrib/admin/sites.py
+++ b/django/contrib/admin/sites.py
@@ -398,7 +398,8 @@ class AdminSite(object):
'root_path': self.root_path,
}
context.update(extra_context or {})
- return render_to_response(self.app_index_template or 'admin/app_index.html', context,
+ return render_to_response(self.app_index_template or ('admin/%s/app_index.html' % app_label,
+ 'admin/app_index.html'), context,
context_instance=template.RequestContext(request)
)