diff options
| author | Michael Scott <michael.scott250@gmail.com> | 2016-11-12 19:09:15 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-14 18:10:56 -0500 |
| commit | 1e629928e9257da5ec37a65784c0f68889d3edf4 (patch) | |
| tree | 4de99f56c508a22484ab98bedcf4c833dc582417 /docs | |
| parent | fb1349ce8cfd207ec5bbdb617dad75a73caee33b (diff) | |
Fixed #27313 -- Allowed overriding admin popup response template.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 11 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index fed034bd92..bcbdc1fb42 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1318,6 +1318,12 @@ templates used by the :class:`ModelAdmin` views: Path to a custom template, used by :meth:`history_view`. +.. attribute:: ModelAdmin.popup_response_template + + .. versionadded:: 1.11 + + Path to a custom template, used by :meth:`response_add`, + :meth:`response_change`, and :meth:`response_delete`. .. _model-admin-methods: @@ -2516,6 +2522,11 @@ app or per model. The following can: * ``change_list.html`` * ``delete_confirmation.html`` * ``object_history.html`` +* ``popup_response.html`` + +.. versionchanged:: 1.11 + + The ability to override the ``popup_response.html`` template was 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/1.11.txt b/docs/releases/1.11.txt index 0dc2b27bde..e14d76ca1f 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -72,6 +72,10 @@ Minor features <django.contrib.admin.ModelAdmin.get_exclude>` hook allows specifying the exclude fields based on the request or model instance. +* The ``popup_response.html`` template can now be overridden per app, per + model, or by setting the :attr:`.ModelAdmin.popup_response_template` + attribute. + :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
