diff options
| author | muskanvaswan <muskanvaswan@gmail.com> | 2021-01-10 13:30:18 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-19 12:27:07 +0100 |
| commit | ab7478d1d4aeaa816cd723793ae9e8325ad11c33 (patch) | |
| tree | 49d97e1a74f7c5c2d70f868e2b17da6ac2de3ab0 | |
| parent | 5371342ed66f5ff9feae9dc4586ec43830bbeca6 (diff) | |
Fixed #32324 -- Added template block to override the admin site header.
| -rw-r--r-- | django/contrib/admin/templates/admin/base.html | 2 | ||||
| -rw-r--r-- | docs/releases/4.0.txt | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index e3788b9c20..c13249c94c 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -28,6 +28,7 @@ {% if not is_popup %} <!-- Header --> + {% block header %} <div id="header"> <div id="branding"> {% block branding %}{% endblock %} @@ -59,6 +60,7 @@ {% endblock %} {% block nav-global %}{% endblock %} </div> + {% endblock %} <!-- END Header --> {% block breadcrumbs %} <div class="breadcrumbs"> diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 9141a4eeaf..d2684a9a2e 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -32,7 +32,8 @@ Minor features :mod:`django.contrib.admin` ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* The ``admin/base.html`` template now has a new block ``header`` which + contains the admin site header. :mod:`django.contrib.admindocs` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
