summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2025-02-28 20:17:17 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-04 10:34:15 +0100
commitc09bceef68e5abb79accedd12dade16aa6577a09 (patch)
tree6f0d89f6b5d517550ba10fd4002e4dc783118337 /docs
parent1759c1dbd1e3cd4c9fcd345269e0d25796468f7f (diff)
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.1.7.txt4
-rw-r--r--docs/releases/5.1.txt5
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 799f3ee819..a57bf60cbd 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