From 1704c49a9b149b66b6a0e67abc8c95293bc35649 Mon Sep 17 00:00:00 2001 From: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> Date: Tue, 20 May 2025 17:12:25 +0200 Subject: Fixed #36390 -- Deprecated RemoteUserMiddleware subclasses missing aprocess_request(). Regression in 50f89ae850f6b4e35819fe725a08c7e579bfd099. Thank you to shamoon for the report and Natalia Bidart for the review. --- docs/internals/deprecation.txt | 4 ++++ docs/releases/5.2.2.txt | 4 ++++ docs/releases/5.2.txt | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 2e0dbb02e5..e6db513dae 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -55,6 +55,10 @@ details on these changes. ``django.contrib.postgres.aggregates.JSONBAgg``, and ``django.contrib.postgres.aggregates.StringAgg`` will be removed. +* Support for subclasses of ``RemoteUserMiddleware`` that override + ``process_request()`` without overriding ``aprocess_request()`` will be + removed. + .. _deprecation-removed-in-6.0: 6.0 diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt index f6787bff08..2cf5c750ff 100644 --- a/docs/releases/5.2.2.txt +++ b/docs/releases/5.2.2.txt @@ -18,3 +18,7 @@ Bugfixes * Fixed a regression in Django 5.2 that caused a crash when no arguments were passed into ``QuerySet.union()`` (:ticket:`36388`). + +* Fixed a regression in Django 5.2 where subclasses of ``RemoteUserMiddleware`` + that had overridden ``process_request()`` were no longer supported + (:ticket:`36390`). diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt index 32a0b35951..feaeb9436a 100644 --- a/docs/releases/5.2.txt +++ b/docs/releases/5.2.txt @@ -488,3 +488,7 @@ Miscellaneous ``django.contrib.postgres.aggregates.JSONBAgg``, and ``django.contrib.postgres.aggregates.StringAgg`` is deprecated in favor of the ``order_by`` argument. + +* Support for subclasses of ``RemoteUserMiddleware`` that override + ``process_request()`` without overriding ``aprocess_request()`` is + deprecated. -- cgit v1.3