﻿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
15008	Convert admin views to use TemplateResponse	Chris Adams	Chris Adams	"A number of internal projects and several opensource projects have needed substantial amounts of boilerplate code when customizing Django admin views. https://github.com/toastdriven/django-haystack/blob/master/haystack/admin.py illustrates the problem nicely: to customize the search logic requires duplicating most of the standard changelist view rather than simply changing the ""cl"" context variable.

1.3 adds TemplateResponse which is perfect for this situation and I have a github branch which changes the contrib.auth and contrib.admin views to use TemplateResponse instead of render_to_response:

https://github.com/acdha/django/compare/master...admin-template-response

The attached patch is a copy of the Github patch view:

https://github.com/acdha/django/compare/master...admin-template-response.patch
"	Cleanup/optimization	closed	contrib.admin	dev	Normal	fixed	templateresponse	kmike84@… carl@… chris@…	Accepted	1	1	0	1	0	0
