diff options
author | Maxime Turcotte <maxime.turcotte@savoirfairelinux.com> | 2014-05-28 12:07:27 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2014-06-13 09:31:40 -0400 |
commit | 504c89e8008c557a1e83c45535b549f77a3503b2 (patch) | |
tree | 3e4345d28dbbbdfa18bb7abfb68950c67655c9ea /tests/admin_ordering | |
parent | bf743a4d571bbb7da276bc21c61f6ada5d26942c (diff) | |
download | django-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.py | 3 |
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() |