﻿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
33575	process_template_response() can not be a static method, but documentation suggests otherwise.	Eugene Vihrev	nobody	"In documentation page on other middleware hooks (https://docs.djangoproject.com/en/4.0/topics/http/middleware/#process-template-response) signature of {{{process_template_response}}} method does not have {{{self}}} among its arguments, suggesting it is not required, so the method can be marked as static. Doing so results in non-verbose error occurring in [https://github.com/django/django/blob/4.0.2/django/core/handlers/base.py#L256 | django/core/handlers/base.py on line 256] due to how django gets middleware name from {{{middleware_method}}} ({{{middleware_method.__self__.__class__.__name__}}}).

I think that documentation should have {{{self}}} in the method signature and user should get a verbose message that {{{@staticmethod}}} is not allowed. Or maybe this behaviour should be changed so all middleware hook methods could be static."	Bug	closed	Documentation	4.0	Normal	wontfix	middleware, documentation		Unreviewed	0	0	0	0	0	0
