From 5fab16392fc00702a5d0288378892ec48fe67dc6 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 14 Sep 2020 13:28:17 +0300 Subject: Fixed #32003 -- Added obj argument to has_perm() methods in tests. --- tests/generic_inline_admin/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/generic_inline_admin/tests.py') 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 -- cgit v1.3