mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +03:00
fix: Call parent constructor for new Permission in test
This commit is contained in:
parent
2f230c2e85
commit
751d69a3ab
|
@ -742,6 +742,7 @@ class PermissionsCacheTests(TestCase):
|
||||||
class IsAuthenticatedUserOwnerWithCounter(permissions.IsAuthenticated):
|
class IsAuthenticatedUserOwnerWithCounter(permissions.IsAuthenticated):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
super().__init__()
|
||||||
self.call_counter = 0
|
self.call_counter = 0
|
||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user