diff options
author | Alexander Todorov <atodorov@mrsenko.com> | 2020-09-14 13:28:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 12:28:17 +0200 |
commit | 5fab16392fc00702a5d0288378892ec48fe67dc6 (patch) | |
tree | b7c191f19978645cee2df9027d571db302d5523c /tests/generic_inline_admin | |
parent | bcc2befd0e9c1885e45b46d0b0bcdc11def8b249 (diff) | |
download | django-5fab16392fc00702a5d0288378892ec48fe67dc6.tar.gz |
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
Diffstat (limited to 'tests/generic_inline_admin')
-rw-r--r-- | tests/generic_inline_admin/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_inline_admin/tests.py b/tests/generic_inline_admin/tests.py index 0ce6eea1e4..fc17b9de74 100644 --- a/tests/generic_inline_admin/tests.py +++ b/tests/generic_inline_admin/tests.py @@ -284,7 +284,7 @@ class MockRequest: class MockSuperUser: - def has_perm(self, perm): + def has_perm(self, perm, obj=None): return True |