summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMaximZemskov <m.zemskov1@gmail.com>2019-01-11 13:13:31 +0300
committerTim Graham <timograham@gmail.com>2019-01-11 18:03:23 -0500
commit3df13847d583f0e439d03dd85e4d8d2a36e6de73 (patch)
tree8da0643e46d7ffca31c2b7943918c68c69d0c137 /docs/ref
parent7470595459dc68f6f1677332f91fb51f5dfc2ffa (diff)
[2.1.x] Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() optional.
Restored backwards compatibility after refs #27991. Regression in be6ca89396c031619947921c81b8795d816e3285. Backport of 3c01fe30f3dd4dc1c8bb4fec816bd277d1ae5fa6 from master.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index bd5547449f..d99552fb9a 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -2417,7 +2417,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)