From ecf6506f44cd09021927a821eb14e3f7f726ab14 Mon Sep 17 00:00:00 2001 From: Antoine Lorence Date: Thu, 29 Sep 2022 12:10:02 +0200 Subject: [4.1.x] Fixed #34062 -- Updated View.http_method_not_allowed() to support async. As with the options() methods, wrap the response in a coroutine if the view is async. Co-authored-by: Carlton Gibson Backport of 9b0c9821ed4dd9920cc7c5e7b657720d91a89bdc from main --- docs/releases/4.1.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.1.2.txt b/docs/releases/4.1.2.txt index 57b0b6c6e8..d607c34c92 100644 --- a/docs/releases/4.1.2.txt +++ b/docs/releases/4.1.2.txt @@ -39,3 +39,7 @@ Bugfixes * Fixed a regression in Django 4.1 that didn't alter a sequence type when altering type of pre-Django 4.1 serial columns on PostgreSQL (:ticket:`34058`). + +* Fixed a regression in Django 4.1 that caused a crash for :class:`View` + subclasses with asynchronous handlers when handling non-allowed HTTP methods + (:ticket:`34062`). -- cgit v1.3