diff options
author | Raffaele Salmaso <raffaele@salmaso.org> | 2017-01-12 17:06:00 +0100 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2018-02-28 08:49:40 +0100 |
commit | 5cc28dc752c3ae78456bb835c3ba195489fc26d7 (patch) | |
tree | dabc737b959f842c880d01542e48eb0dfe079cc5 /docs | |
parent | 6e52e2554dcc902b446f9d371ed1e6a07f36d6ec (diff) | |
download | django-5cc28dc752c3ae78456bb835c3ba195489fc26d7.tar.gz |
Fixed #27728 -- Allowed overriding admin templatetags templates.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ref/contrib/admin/index.txt | 16 | ||||
-rw-r--r-- | docs/releases/2.1.txt | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index d1138076ff..5ea78d2278 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2680,12 +2680,28 @@ Templates which may be overridden per app or model Not every template in ``contrib/admin/templates/admin`` may be overridden per app or per model. The following can: +* ``actions.html`` * ``app_index.html`` * ``change_form.html`` +* ``change_form_object_tools.html`` * ``change_list.html`` +* ``change_list_object_tools.html`` +* ``change_list_results.html`` +* ``date_hierarchy.html`` * ``delete_confirmation.html`` * ``object_history.html`` +* ``pagination.html`` * ``popup_response.html`` +* ``prepopulated_fields_js.html`` +* ``search_form.html`` +* ``submit_line.html`` + +.. versionchanged:: 2.1 + + The ability to override the ``actions.html``, ``change_form_object_tools.html``, + ``change_list_object_tools.html``, ``change_list_results.html``, + ``date_hierarchy.html``, ``pagination.html``, ``prepopulated_fields_js.html``, + ``search_form.html``, ``submit_line.html`` templates were added. For those templates that cannot be overridden in this way, you may still override them for your entire project. Just place the new version in your diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt index 65b41b2eed..d6cb44caa1 100644 --- a/docs/releases/2.1.txt +++ b/docs/releases/2.1.txt @@ -52,6 +52,14 @@ Minor features * The new :meth:`.ModelAdmin.get_deleted_objects()` method allows customizing the deletion process of the delete view and the "delete selected" action. +* The ``actions.html``, ``change_list_results.html``, ``date_hierarchy.html``, + ``pagination.html``, ``prepopulated_fields_js.html``, ``search_form.html`` + and ``submit_line.html`` templates can be overridden even per app or + per model, other than globally. + +* The admin change list and change form object tools can now be overridden per app, + per model or globally with ``change_list_object_tools.html`` and + ``change_form_object_tools.html`` templates. :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |