mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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:
parent
cd74aad90e
commit
1871182031
3 changed files with 70 additions and 32 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue