﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21371	Admin templates use a `bodyclass` block without ever calling super.	Keryn Knight <django@…>	resry	"A reasonable expectation is, I think, to be able to subsume the `admin/base_site.html` template to do a few tweaks for display purposes, by throwing it in an earlier INSTALLED_APP or into one of the paths set in TEMPLATE_DIRS; for the most part, this works as expected.

However, trying to do something like:
{{{
{% extends ""admin/base.html"" %}
{% block bodyclass %}mymagicalbase {{ block.super }}{% endblock %}
}}}
does not work as desired, because subsequent templates [those which inherit from base_site] define the `bodyclass` block without calling super themselves; see [https://github.com/django/django/search?q=bodyclass++path%3Adjango%2Fcontrib%2Fadmin%2Ftemplates&type=Code GitHub search] demonstrating the files affected; with the notable exception of app_index, which ''does'' call super.

By contrast, all of the templates which require `extrastyles` ''do'' call super to ensure the template hierarchy's block representation is preserved as the template author designed."	Cleanup/optimization	closed	contrib.admin	dev	Normal	fixed			Accepted	1	0	0	1	1	0
