From f5123c7291e855713b59e739bad0e50a1d50d3ef Mon Sep 17 00:00:00 2001 From: julien 'pouete' Godin Date: Wed, 8 Jan 2014 17:48:43 +0100 Subject: [PATCH] Fixed #21371 -- Added the block.super to admin bodyclass blocks. Thanks Keryn Knight for the report. --- .../admin/templates/admin/app_index.html | 2 +- .../admin/auth/user/change_password.html | 2 +- .../admin/templates/admin/change_form.html | 2 +- .../admin/templates/admin/change_list.html | 2 +- .../templates/admin/delete_confirmation.html | 2 +- .../admin/delete_selected_confirmation.html | 2 +- .../contrib/admin/templates/admin/index.html | 2 +- .../contrib/admin/templates/admin/login.html | 2 +- .../templates/admin/base_site.html | 3 + tests/admin_views/tests.py | 99 ++++++++++++++++--- 10 files changed, 94 insertions(+), 24 deletions(-) create mode 100644 tests/admin_views/templates/admin/base_site.html diff --git a/django/contrib/admin/templates/admin/app_index.html b/django/contrib/admin/templates/admin/app_index.html index 5eff1248c1..6868b497dd 100644 --- a/django/contrib/admin/templates/admin/app_index.html +++ b/django/contrib/admin/templates/admin/app_index.html @@ -1,7 +1,7 @@ {% extends "admin/index.html" %} {% load i18n %} -{% block bodyclass %}app-{{ app_label }} {{ block.super }}{% endblock %} +{% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %} {% if not is_popup %} {% block breadcrumbs %} diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html index f37f35c6a3..cd11a2ee48 100644 --- a/django/contrib/admin/templates/admin/auth/user/change_password.html +++ b/django/contrib/admin/templates/admin/auth/user/change_password.html @@ -6,7 +6,7 @@ {% endblock %} {% block extrastyle %}{{ block.super }}{% endblock %} -{% block bodyclass %}{{ opts.app_label }}-{{ opts.model_name }} change-form{% endblock %} +{% block bodyclass %}{{ block.super }} {{ opts.app_label }}-{{ opts.model_name }} change-form{% endblock %} {% if not is_popup %} {% block breadcrumbs %}