mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
This commit is contained in:
parent
bcc2befd0e
commit
5fab16392f
4 changed files with 8 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue