Fixed #32324 -- Added template block to override the admin site header.

This commit is contained in:
muskanvaswan 2021-01-10 13:30:18 +05:30 committed by Mariusz Felisiak
parent 5371342ed6
commit ab7478d1d4
2 changed files with 4 additions and 1 deletions

View File

@ -28,6 +28,7 @@
{% if not is_popup %} {% if not is_popup %}
<!-- Header --> <!-- Header -->
{% block header %}
<div id="header"> <div id="header">
<div id="branding"> <div id="branding">
{% block branding %}{% endblock %} {% block branding %}{% endblock %}
@ -59,6 +60,7 @@
{% endblock %} {% endblock %}
{% block nav-global %}{% endblock %} {% block nav-global %}{% endblock %}
</div> </div>
{% endblock %}
<!-- END Header --> <!-- END Header -->
{% block breadcrumbs %} {% block breadcrumbs %}
<div class="breadcrumbs"> <div class="breadcrumbs">

View File

@ -32,7 +32,8 @@ Minor features
:mod:`django.contrib.admin` :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` :mod:`django.contrib.admindocs`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~