summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2021-04-24 01:07:18 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-28 20:27:42 +0200
commitd5add5d3a26f98e961dfbcad67bb04d936f2f332 (patch)
tree8932d754cda985f7b46e3ead22fdb867a5c974fa /docs
parent55cb3c8ac186f7664b38d66fb4c7e678fe524741 (diff)
[3.2.x] Fixed #32632, Fixed #32657 -- Removed flawed support for Subquery deconstruction.
Subquery deconstruction support required implementing complex and expensive equality rules for sql.Query objects for little benefit as the latter cannot themselves be made deconstructible to their reference to model classes. Making Expression @deconstructible and not BaseExpression allows interested parties to conform to the "expression" API even if they are not deconstructible as it's only a requirement for expressions allowed in Model fields and meta options (e.g. constraints, indexes). Thanks Phillip Cutter for the report. This also fixes a performance regression in bbf141bcdc31f1324048af9233583a523ac54c94. Backport of c8b659430556dca0b2fe27cf2ea0f8290dbafecd from main
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.2.1.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/3.2.1.txt b/docs/releases/3.2.1.txt
index 1c8776a0bf..545c9adce3 100644
--- a/docs/releases/3.2.1.txt
+++ b/docs/releases/3.2.1.txt
@@ -68,3 +68,7 @@ Bugfixes
* Fixed a regression in Django 3.2 where the calling process environment would
not be passed to the ``dbshell`` command on PostgreSQL (:ticket:`32687`).
+
+* Fixed a performance regression in Django 3.2 when building complex filters
+ with subqueries (:ticket:`32632`). As a side-effect the private API to check
+ ``django.db.sql.query.Query`` equality is removed.