﻿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
27831	decorator_from_middleware is not compatible with new middlewares	Andreas Pelme	nobody	"The old middlewares is deprecated, but `decorator_from_middleware` assumes old style middleware and does not work with the new style.

`decorator_from_middleware` is very useful, not having it for new middlewares is a bummer.

Currently, one needs to use `django.utils.deprecation.MiddlewareMixin` to use it with newly written middlewares.

I'm not sure if it is possible to support both styles with `decorator_from_middleware` since the API:s (passing `get_response`) is different.

Maybe the best way forward would be to introduce a new util function that deals with the new style middleware?"	New feature	closed	Utilities	1.10	Normal	duplicate			Unreviewed	0	0	0	0	0	0
