summaryrefslogtreecommitdiff
path: root/tests/admin_ordering
diff options
context:
space:
mode:
authorMaxime Turcotte <maxime.turcotte@savoirfairelinux.com>2014-05-28 12:07:27 -0400
committerTim Graham <timograham@gmail.com>2014-06-13 09:31:40 -0400
commit504c89e8008c557a1e83c45535b549f77a3503b2 (patch)
tree3e4345d28dbbbdfa18bb7abfb68950c67655c9ea /tests/admin_ordering
parentbf743a4d571bbb7da276bc21c61f6ada5d26942c (diff)
downloaddjango-504c89e8008c557a1e83c45535b549f77a3503b2.tar.gz
Fixed #6327 -- Added has_module_permission method to BaseModelAdmin
Thanks chrj for the suggestion.
Diffstat (limited to 'tests/admin_ordering')
-rw-r--r--tests/admin_ordering/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_ordering/tests.py b/tests/admin_ordering/tests.py
index 7a6efb0b4d..bc08adee12 100644
--- a/tests/admin_ordering/tests.py
+++ b/tests/admin_ordering/tests.py
@@ -17,6 +17,9 @@ class MockSuperUser(object):
def has_perm(self, perm):
return True
+ def has_module_perms(self, module):
+ return True
+
request = MockRequest()
request.user = MockSuperUser()