diff options
| author | antoliny0919 <antoliny0919@gmail.com> | 2025-02-28 12:17:17 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-04 10:38:15 +0100 |
| commit | 03ace756eafc3f7a85f5b84d28ce1e7ce092c018 (patch) | |
| tree | cc1be8d05c7fbb47164a46bdb6239ab37e016ac2 /docs | |
| parent | 76a9f12b6098632b1b326e40fb6eb65500c214e1 (diff) | |
[5.1.x] Fixed #36217 -- Restored pre_save/post_save signal emission via LogEntry.save() for single-object deletion in the admin.
Regression in 40b3975e7d3e1464a733c69171ad7d38f8814280.
Thanks smiling-watermelon for the report.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Backport of c09bceef68e5abb79accedd12dade16aa6577a09 from main.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.1.7.txt | 4 | ||||
| -rw-r--r-- | docs/releases/5.1.txt | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/5.1.7.txt b/docs/releases/5.1.7.txt index d1ed21ec5d..77e89d9c27 100644 --- a/docs/releases/5.1.7.txt +++ b/docs/releases/5.1.7.txt @@ -22,3 +22,7 @@ Bugfixes of ``ManyToManyField`` related managers would always return ``0`` and ``False`` when the intermediary model back references used ``to_field`` (:ticket:`36197`). + +* Fixed a regression in Django 5.1 where the ``pre_save`` and ``post_save`` + signals for ``LogEntry`` were not sent when deleting a single object in the + admin (:ticket:`36217`). diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 037c76fd54..66df27e9af 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -401,6 +401,11 @@ Miscellaneous * The minimum supported version of ``asgiref`` is increased from 3.7.0 to 3.8.1. +* To improve performance, the ``delete_selected`` admin action now uses + ``QuerySet.bulk_create()`` when creating multiple ``LogEntry`` objects. As a + result, ``pre_save`` and ``post_save`` signals for ``LogEntry`` are not sent + when multiple objects are deleted via this admin action. + .. _deprecated-features-5.1: Features deprecated in 5.1 |
