From c29e3092fdb1136f0945ce2be8f14c3853d6c8da Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 21 May 2025 16:16:12 +0200 Subject: [5.2.x] Fixed #36404 -- Fixed Aggregate.filter using OuterRef. Regression in a76035e925ff4e6d8676c65cb135c74b993b1039. Thank you to Simon Charette for the review. co-authored-by: Simon Charette Backport of b8e5a8a9a2a767f584cbe89a878a42363706f939 from main. --- docs/releases/5.2.2.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt index 2cf5c750ff..b8deb1c928 100644 --- a/docs/releases/5.2.2.txt +++ b/docs/releases/5.2.2.txt @@ -22,3 +22,6 @@ Bugfixes * Fixed a regression in Django 5.2 where subclasses of ``RemoteUserMiddleware`` that had overridden ``process_request()`` were no longer supported (:ticket:`36390`). + +* Fixed a regression in Django 5.2 that caused a crash when using ``OuterRef`` + in the ``filter`` argument of an ``Aggregate`` expression (:ticket:`36404`). -- cgit v1.3