From 825ce75faec63ce81601e31152c757a9c28fed13 Mon Sep 17 00:00:00 2001 From: Kevin Michel Date: Mon, 24 Aug 2020 22:25:33 +0200 Subject: Fixed #31928 -- Fixed detecting an async get_response in various middlewares. SecurityMiddleware and the three cache middlewares were not calling super().__init__() during their initialization or calling the required MiddlewareMixin._async_check() method. This made the middlewares not properly present as coroutine and confused the middleware chain when used in a fully async context. Thanks Kordian Kowalski for the report. --- docs/releases/3.1.1.txt | 3 +++ docs/spelling_wordlist | 1 + 2 files changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.1.1.txt b/docs/releases/3.1.1.txt index 84f9020c53..68c02392bd 100644 --- a/docs/releases/3.1.1.txt +++ b/docs/releases/3.1.1.txt @@ -48,3 +48,6 @@ Bugfixes ``CommonPasswordValidator`` and ``settings.py`` generated by the :djadmin:`startproject` command, when user didn't have permissions to all intermediate directories in a Django installation path (:ticket:`31912`). + +* Fixed detecting an async ``get_response`` callable in various builtin + middlewares (:ticket:`31928`). diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index c6720f4de6..727d9cf66e 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -371,6 +371,7 @@ metre MiB micrometre middleware +middlewares migrationname millimetre Minification -- cgit v1.3