From 386caa5445c42413f300dfc08f0d7c3767b2b2d9 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 11 May 2021 01:19:44 -0400 Subject: [3.2.x] Fixed #32717 -- Fixed filtering of querysets combined with the | operator. Address a long standing bug in a Where.add optimization to discard equal nodes that was surfaced by implementing equality for Lookup instances in bbf141bcdc31f1324048af9233583a523ac54c94. Thanks Shaheed Haque for the report. Backport of b81c7562fc33f50166d5120138d6398dc42b13c3 from main --- docs/releases/3.2.3.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.2.3.txt b/docs/releases/3.2.3.txt index 14a143b203..315678b92a 100644 --- a/docs/releases/3.2.3.txt +++ b/docs/releases/3.2.3.txt @@ -10,3 +10,6 @@ Bugfixes ======== * Prepared for ``mysqlclient`` > 2.0.3 support (:ticket:`32732`). + +* Fixed a regression in Django 3.2 that caused the incorrect filtering of + querysets combined with the ``|`` operator (:ticket:`32717`). -- cgit v1.3