mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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 6307c3f1a1
revealed a possible data loss issue in the admin.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user