﻿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
31949	Allow builtin view decorators to be applied directly to async views.	Michael Galler	Ben Lomax	"The cache middleware is broken because it inherits from MiddlewareMixin and override the init method.


{{{
TypeError: object HttpResponse can't be used in 'await' expression
}}}


On both middlewares the self._async_check() is missing in init.

Also the most view decorators are broken on async views, because the dont provide async/await.

For example:

{{{
cache_control
xframe_options_deny
vary_on_cookie
}}}
"	New feature	closed	Core (Other)	3.1	Normal	fixed	async	Andrew Godwin Ben Lomax Roy Smith Jon Janzen	Accepted	0	0	0	0	0	0
