Skip to content

Commit 00f38f6

Browse files
committed
Linting
1 parent 561b449 commit 00f38f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rules/contrib/rest_framework.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
2+
23
from ..viewsets import BaseAutoPermissionMixin
34

5+
46
class AutoPermissionViewSetMixin(BaseAutoPermissionMixin):
57
"""
68
Enforces object-level permissions in ``rest_framework.viewsets.ViewSet``,

rules/viewsets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# All auto permission mixins (both for DRF and Django views)
22
# inherit from this mixin.
33
class BaseAutoPermissionMixin:
4-
54
def get_perm(self, model, perm_type):
65
return "%s.%s_%s" % (model._meta.app_label, perm_type, model._meta.model_name)
76

0 commit comments

Comments
 (0)