mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #36217 -- Restored pre_save/post_save signal emission via LogEntry.save() for single-object deletion in the admin.
Regression in 40b3975e7d.
Thanks smiling-watermelon for the report.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
committed by
Sarah Boyce
parent
1759c1dbd1
commit
c09bceef68
@@ -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`).
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user