#9908: Allow individual app_index templates for different apps
----------------------------------+-----------------------------------------
Reporter: arne | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: SVN
Keywords: app_index | Stage: Unreviewed
Has_patch: 1 |
----------------------------------+-----------------------------------------
django.contrib.admin allows customization of individual change_list or
change_form templates by using a list of templates in the form of (example
from render_change_form method):
{{{
self.change_form_template or [
"admin/%s/%s/change_form.html" % (app_label,
opts.object_name.lower()),
"admin/%s/change_form.html" % app_label,
"admin/change_form.html"
]
}}}
This mechanism does not work for the app_index template but could easily
be implmented. I've attached a diff, which allows placing templates at
'admin/<app_label>/app_index.html' for individual apps, while still
allowing global customization by setting the app_index_template class
attribute and still falling back to 'admin/app_index.html'
--
Ticket URL: <http://code.djangoproject.com/ticket/9908>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---