﻿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
6396	Remove customization-unfriendly admin template tags	korpios	nobody	"The admin interface makes use of various template tags that are opaque, and make customization difficult.

An example from `admin/change_list.html`:
{{{
{% block result_list %}{% result_list cl %}{% endblock %}
}}}
This calls an `inclusion_tag` called `result_list` that is used exactly once in the admin (i.e., here); that `inclusion_tag` drops in some extra context variables before rendering `admin/change_list_results.html`.  This doesn't work with the common `[app_label]/[object_name]/template.html` magic, since `inclusion_tag` sets the template names upon registration.  If there's a good reason for using a template tag here, I'm not seeing it.  `:)`

The attached patch pulls the template code from `change_list_results.html` into `change_list.html`, and updates the latter's context with the extra context variables from the former.  I intend to start yanking out similar uses of one-off template tags as I come across them in the admin, so I'll be dropping updated patches on this ticket as I go along.

The rearranging of the functions `result_headers`, etc., is to avoid some circular import nastiness; I dropped them after `ChangeList`, which seems to make the most sense."	Cleanup/optimization	new	contrib.admin	dev	Normal		nfa-someday	kmike84@… cmawebsite@… Ülgen Sarıkavak	Accepted	1	0	0	1	0	0
