Fixed #32385 -- Removed unused and duplicated loading of tags in admin templates.
- `i18n` is duplicated in base.html. - `l10n` is unused in prepopulated_fields_js.html sinced638cdc42a
. - `static` is unused in change_list_results.html sincef2ed107b07
. - `static` is unused in stacked.html sinced61ebc8fed
.
This commit is contained in:
parent
c978dd93fd
commit
a736baab92
|
@ -18,7 +18,6 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE">{% endblock %}
|
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE">{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"
|
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"
|
||||||
data-admin-utc-offset="{% now "Z" %}">
|
data-admin-utc-offset="{% now "Z" %}">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% load i18n static %}
|
{% load i18n %}
|
||||||
{% if result_hidden_fields %}
|
{% if result_hidden_fields %}
|
||||||
<div class="hiddenfields">{# DIV for HTML validation #}
|
<div class="hiddenfields">{# DIV for HTML validation #}
|
||||||
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
|
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% load i18n admin_urls static %}
|
{% load i18n admin_urls %}
|
||||||
<div class="js-inline-admin-formset inline-group"
|
<div class="js-inline-admin-formset inline-group"
|
||||||
id="{{ inline_admin_formset.formset.prefix }}-group"
|
id="{{ inline_admin_formset.formset.prefix }}-group"
|
||||||
data-inline-type="stacked"
|
data-inline-type="stacked"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% load l10n static %}
|
{% load static %}
|
||||||
<script id="django-admin-prepopulated-fields-constants"
|
<script id="django-admin-prepopulated-fields-constants"
|
||||||
src="{% static "admin/js/prepopulate_init.js" %}"
|
src="{% static "admin/js/prepopulate_init.js" %}"
|
||||||
data-prepopulated-fields="{{ prepopulated_fields_json }}">
|
data-prepopulated-fields="{{ prepopulated_fields_json }}">
|
||||||
|
|
Loading…
Reference in New Issue