﻿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
37124	AccessMixin: object HttpResponseRedirect can't be used in 'await' expression	Johannes Maron	ZKY	"The redirect response in AccessMixin.handle_no_permission isn't async compatible.

If you have access, everything works fine, since all HTTP method handlers are async and return coroutines; only if you lack permissions or are unauthenticated is the redirect response synchronous.

With access to `view_is_async` it should be a fairly easy fix to have `handle_no_permission` return a coroutine.

Thanks to @amirreza-sf80 for reporting:
https://github.com/django/new-features/issues/162#issuecomment-4562082172

I could find the bug on Stack Overflow as well, but no ticket on Trac:
https://stackoverflow.com/questions/66512353/using-loginrequiredmixin-with-async-views"	Bug	assigned	Uncategorized	dev	Normal			Johannes Maron	Unreviewed	0	0	0	0	1	0
