mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() optional.
Restored backwards compatibility after refs #27991.
Regression in be6ca89396.
This commit is contained in:
@@ -2413,7 +2413,9 @@ The ``InlineModelAdmin`` class adds or customizes:
|
||||
|
||||
.. versionchanged:: 2.1
|
||||
|
||||
The ``obj`` argument was added.
|
||||
The ``obj`` argument was added. During the deprecation period, it may
|
||||
also be ``None`` if third-party calls to ``has_add_permission()`` don't
|
||||
provide it.
|
||||
|
||||
.. method:: InlineModelAdmin.has_change_permission(request, obj=None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user