From 98ad327864aed8df245fd19ea9d2743279e11643 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 29 Dec 2020 09:04:35 +0100 Subject: Fixed #32299 -- Prevented mutating handlers when processing middlewares marking as unused in an async context. Thanks Hubert Bielenia for the report. --- docs/releases/3.1.5.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.1.5.txt b/docs/releases/3.1.5.txt index 0d11118446..eea060d112 100644 --- a/docs/releases/3.1.5.txt +++ b/docs/releases/3.1.5.txt @@ -12,3 +12,7 @@ Bugfixes * Fixed ``__isnull=True`` lookup on key transforms for :class:`~django.db.models.JSONField` with Oracle and SQLite (:ticket:`32252`). + +* Fixed a bug in Django 3.1 that caused a crash when processing middlewares in + an async context with a middleware that raises a ``MiddlewareNotUsed`` + exception (:ticket:`32299`). -- cgit v1.3