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
This commit is contained in:
parent
da0c6908e8
commit
a2dec37c41
|
@ -398,7 +398,8 @@ class AdminSite(object):
|
||||||
'root_path': self.root_path,
|
'root_path': self.root_path,
|
||||||
}
|
}
|
||||||
context.update(extra_context or {})
|
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)
|
context_instance=template.RequestContext(request)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1130,6 +1130,7 @@ Templates which may be overridden per app or model
|
||||||
Not every template in ``contrib\admin\templates\admin`` may be overridden per
|
Not every template in ``contrib\admin\templates\admin`` may be overridden per
|
||||||
app or per model. The following can:
|
app or per model. The following can:
|
||||||
|
|
||||||
|
* ``app_index.html``
|
||||||
* ``change_form.html``
|
* ``change_form.html``
|
||||||
* ``change_list.html``
|
* ``change_list.html``
|
||||||
* ``delete_confirmation.html``
|
* ``delete_confirmation.html``
|
||||||
|
|
Loading…
Reference in New Issue