summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-26 09:22:46 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-04-27 10:39:55 +0200
commit34981f399a68b633682e0f6a3ded2e31ffd6d243 (patch)
tree697d788e86de40d9bd623e8ccc09c4cfcfc28557 /docs
parentfbea64b8ce6a82dd34b1f78cb884306455106185 (diff)
[3.2.x] Fixed #32682 -- Made admin changelist use Exists() instead of distinct() for preventing duplicates.
Thanks Zain Patel for the report and Simon Charette for reviews. The exception introduced in 6307c3f1a123f5975c73b231e8ac4f115fd72c0d revealed a possible data loss issue in the admin. Backport of 187118203197801c6cb72dc8b06b714b23b6dd3d from main
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.2.1.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/3.2.1.txt b/docs/releases/3.2.1.txt
index f99dacac0c..83d317bc7e 100644
--- a/docs/releases/3.2.1.txt
+++ b/docs/releases/3.2.1.txt
@@ -59,3 +59,9 @@ Bugfixes
* Fixed a bug in Django 3.2 where variable lookup errors were logged when
rendering some admin templates (:ticket:`32681`).
+
+* Fixed a bug in Django 3.2 where an admin changelist would crash when deleting
+ objects filtered against multi-valued relationships (:ticket:`32682`). The
+ admin changelist now uses ``Exists()`` instead ``QuerySet.distinct()``
+ because calling ``delete()`` after ``distinct()`` is not allowed in Django
+ 3.2 to address a data loss possibility.