summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-01-17 18:40:11 -0500
committerTim Graham <timograham@gmail.com>2019-01-17 18:40:11 -0500
commitee9bd8c31024ec424157798b2a60a7f52f9353ee (patch)
tree2353d57977a202934c9b92bf8a2bc1779062a974 /django
parenta9feec5c70f41b74e2af59725aa3c4c6528b934b (diff)
[2.2.x] Refs #30097 -- Fixed typos in InlineModelAdmin.has_add_permission() deprecation comments.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index eb2c8cd094..31b6dc9233 100644
--- a/django/contrib/admin/options.py
+++ b/django/contrib/admin/options.py
@@ -2127,7 +2127,7 @@ class InlineModelAdmin(BaseModelAdmin):
return queryset
def has_add_permission(self, request, obj=None):
- # RemovedInDjango31Warning: obj becomes a mandatory argument.
+ # RemovedInDjango30Warning: obj becomes a mandatory argument.
if self.opts.auto_created:
# We're checking the rights to an auto-created intermediate model,
# which doesn't have its own individual permissions. The user needs