From dc9deea8e85641695e489e43ed5d5638134c15c7 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sat, 1 Jan 2022 11:56:10 -0500 Subject: Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty tuples. This clarifies the intended pattern of overwriting the default value rather than mutating it. --- docs/releases/4.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index fa1c05bc80..e3bc02f226 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -341,6 +341,10 @@ Miscellaneous ``request.META['CSRF_COOKIE']`` for storing the unmasked CSRF secret rather than a masked version. This is an undocumented, private API. +* The :attr:`.ModelAdmin.actions` and + :attr:`~django.contrib.admin.ModelAdmin.inlines` attributes now default to an + empty tuple rather than an empty list to discourage unintended mutation. + .. _deprecated-features-4.1: Features deprecated in 4.1 -- cgit v1.3