summaryrefslogtreecommitdiff
path: root/docs
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:02:43 -0500
commit3c01fe30f3dd4dc1c8bb4fec816bd277d1ae5fa6 (patch)
tree59dca178d22d600ff58c36130a0acb6fde250650 /docs
parent8f4eee177785cba27d6181840206ff2f164f2960 (diff)
Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() optional.
Restored backwards compatibility after refs #27991. Regression in be6ca89396c031619947921c81b8795d816e3285.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt4
-rw-r--r--docs/releases/2.1.6.txt4
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 7a14d694a6..c163dc9f2e 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -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)
diff --git a/docs/releases/2.1.6.txt b/docs/releases/2.1.6.txt
index 894eb160b2..d5f342f546 100644
--- a/docs/releases/2.1.6.txt
+++ b/docs/releases/2.1.6.txt
@@ -9,4 +9,6 @@ Django 2.1.6 several bugs in 2.1.5.
Bugfixes
========
-* ...
+* Made the ``obj`` argument of ``InlineModelAdmin.has_add_permission()``
+ optional to restore backwards compatibility with third-party code that
+ doesn't provide it (:ticket:`30097`).