1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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 %}
<!-- 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">

View File

@ -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`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~