summaryrefslogtreecommitdiff
path: root/django/contrib/admin/options.py
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2025-03-12 11:05:50 +0000
committernessita <124304+nessita@users.noreply.github.com>2025-03-12 16:25:28 -0300
commit27b68bcadf1ab2e9f7fd223aed42db352ccdc62d (patch)
tree14e4e19a450da3cd0e92402eb0017fa43db66b4f /django/contrib/admin/options.py
parented984f2ac4923d6bc625adb4e8d9146765a02ab1 (diff)
Fixed #36234 -- Restored single_object argument to LogEntry.objects.log_actions().
Thank you Adam Johnson for the report and fix. Thank you Sarah Boyce for your spot on analysis. Regression in c09bceef68e5abb79accedd12dade16aa6577a09, which is partially reverted in this branch. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Diffstat (limited to 'django/contrib/admin/options.py')
-rw-r--r--django/contrib/admin/options.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index 090b12151a..3c2cf9d130 100644
--- a/django/contrib/admin/options.py
+++ b/django/contrib/admin/options.py
@@ -946,6 +946,7 @@ class ModelAdmin(BaseModelAdmin):
queryset=[obj],
action_flag=ADDITION,
change_message=message,
+ single_object=True,
)
def log_change(self, request, obj, message):
@@ -961,6 +962,7 @@ class ModelAdmin(BaseModelAdmin):
queryset=[obj],
action_flag=CHANGE,
change_message=message,
+ single_object=True,
)
def log_deletions(self, request, queryset):