Fixed #31905 -- Made MiddlewareMixin call process_request()/process_response() with thread sensitive.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
This commit is contained in:
Michael Galler 2020-08-20 18:41:22 +02:00 committed by Mariusz Felisiak
parent 0b0658111c
commit 547a07fa7e
3 changed files with 54 additions and 3 deletions

View file

@ -35,3 +35,7 @@ Bugfixes
* Reverted a deprecation in Django 3.1 that caused a crash when passing
deprecated keyword arguments to a queryset in
``TemplateView.get_context_data()`` (:ticket:`31877`).
* Enforced thread sensitivity of the :class:`MiddlewareMixin.process_request()
<django.utils.deprecation.MiddlewareMixin>` and ``process_response()`` hooks
when in an async context (:ticket:`31905`).