mirror of
https://github.com/django/django.git
synced 2025-11-23 12:26:57 +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:
parent
1759c1dbd1
commit
c09bceef68
8 changed files with 41 additions and 14 deletions
|
|
@ -3884,21 +3884,18 @@ class AdminViewStringPrimaryKeyTest(TestCase):
|
|||
[cls.m1],
|
||||
2,
|
||||
change_message="Changed something",
|
||||
single_object=True,
|
||||
)
|
||||
LogEntry.objects.log_actions(
|
||||
user_pk,
|
||||
[cls.m1],
|
||||
1,
|
||||
change_message="Added something",
|
||||
single_object=True,
|
||||
)
|
||||
LogEntry.objects.log_actions(
|
||||
user_pk,
|
||||
[cls.m1],
|
||||
3,
|
||||
change_message="Deleted something",
|
||||
single_object=True,
|
||||
)
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue