From a736baab92acb26eab09979143b2eafb53b957dd Mon Sep 17 00:00:00 2001 From: tim-mccurrach <34194722+tim-mccurrach@users.noreply.github.com> Date: Wed, 27 Jan 2021 11:16:12 +0000 Subject: [PATCH] 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 since d638cdc42acec608c1967f44af6be32a477c239f. - `static` is unused in change_list_results.html since f2ed107b079b050950e2fc5f2b689ca553ae12f5. - `static` is unused in stacked.html since d61ebc8fed212366340b1ed6f5d7722613801459. --- django/contrib/admin/templates/admin/base.html | 1 - django/contrib/admin/templates/admin/change_list_results.html | 2 +- django/contrib/admin/templates/admin/edit_inline/stacked.html | 2 +- .../contrib/admin/templates/admin/prepopulated_fields_js.html | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index c13249c94c..23cae64ee5 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -18,7 +18,6 @@ {% endblock %} {% block blockbots %}{% endblock %} -{% load i18n %} diff --git a/django/contrib/admin/templates/admin/change_list_results.html b/django/contrib/admin/templates/admin/change_list_results.html index f8099cecbe..399d1d36fc 100644 --- a/django/contrib/admin/templates/admin/change_list_results.html +++ b/django/contrib/admin/templates/admin/change_list_results.html @@ -1,4 +1,4 @@ -{% load i18n static %} +{% load i18n %} {% if result_hidden_fields %}
{# DIV for HTML validation #} {% for item in result_hidden_fields %}{{ item }}{% endfor %} diff --git a/django/contrib/admin/templates/admin/edit_inline/stacked.html b/django/contrib/admin/templates/admin/edit_inline/stacked.html index 25b7b58e4e..ccc7134c7b 100644 --- a/django/contrib/admin/templates/admin/edit_inline/stacked.html +++ b/django/contrib/admin/templates/admin/edit_inline/stacked.html @@ -1,4 +1,4 @@ -{% load i18n admin_urls static %} +{% load i18n admin_urls %}