mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
b111b15c12
commit
dc9deea8e8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user