mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
This commit is contained in:
committed by
GitHub
parent
bcc2befd0e
commit
5fab16392f
@@ -12,7 +12,7 @@ class MockUser:
|
||||
def has_module_perms(self, perm):
|
||||
return perm == 'mockapp'
|
||||
|
||||
def has_perm(self, perm):
|
||||
def has_perm(self, perm, obj=None):
|
||||
return perm == 'mockapp.someperm'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user