summaryrefslogtreecommitdiff
path: root/tests/admin_ordering
diff options
context:
space:
mode:
authorAlexander Todorov <atodorov@mrsenko.com>2020-09-14 13:28:17 +0300
committerGitHub <noreply@github.com>2020-09-14 12:28:17 +0200
commit5fab16392fc00702a5d0288378892ec48fe67dc6 (patch)
treeb7c191f19978645cee2df9027d571db302d5523c /tests/admin_ordering
parentbcc2befd0e9c1885e45b46d0b0bcdc11def8b249 (diff)
downloaddjango-5fab16392fc00702a5d0288378892ec48fe67dc6.tar.gz
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
Diffstat (limited to 'tests/admin_ordering')
-rw-r--r--tests/admin_ordering/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_ordering/tests.py b/tests/admin_ordering/tests.py
index f68b64ae70..d47cf16d46 100644
--- a/tests/admin_ordering/tests.py
+++ b/tests/admin_ordering/tests.py
@@ -15,7 +15,7 @@ class MockRequest:
class MockSuperUser:
- def has_perm(self, perm):
+ def has_perm(self, perm, obj=None):
return True
def has_module_perms(self, module):