diff options
| author | Tim Graham <timograham@gmail.com> | 2019-01-17 18:40:11 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-17 18:40:11 -0500 |
| commit | ee9bd8c31024ec424157798b2a60a7f52f9353ee (patch) | |
| tree | 2353d57977a202934c9b92bf8a2bc1779062a974 | |
| parent | a9feec5c70f41b74e2af59725aa3c4c6528b934b (diff) | |
[2.2.x] Refs #30097 -- Fixed typos in InlineModelAdmin.has_add_permission() deprecation comments.
| -rw-r--r-- | django/contrib/admin/options.py | 2 | ||||
| -rw-r--r-- | tests/modeladmin/tests.py | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 0d78dd9c21..bb79000b06 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -798,7 +798,7 @@ class ModelAdminPermissionTests(SimpleTestCase): self.assertIsInstance(inline_instances[0], ConcertInline) def test_inline_has_add_permission_without_obj(self): - # This test will be removed in Django 3.1 when `obj` becomes a required + # This test will be removed in Django 3.0 when `obj` becomes a required # argument of has_add_permission() (#27991). class ConcertInline(TabularInline): model = Concert |
