﻿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
16399	Code cleanup in django.core.handlers.base.BaseHandler	Aymeric Augustin	nobody	"In `django.core.handlers.base.BaseHandler`, `__init__` sets all middleware lists to `None`; `load_middleware` creates and populates them.

There is a small inconsistency that probably dates back to the introduction of template response middleware: `self._template_response_middleware` isn't initialized, while the other lists are. I don't know if it creates a bug — at first sight, this initialization could be skipped entirely — but I believe it should be fixed for the shake of consistency.

Also, `load_middleware`'s docstring refers to a `__call__` method that doesn't exist in the class; I improved that comment.

Attached patch fixes this."	Cleanup/optimization	closed	Core (Other)	1.3	Normal	fixed			Ready for checkin	1	0	0	0	1	0
