8000 Fix typo at OR constructor · coderanger/django-rest-framework@db16bb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit db16bb3

Browse files
authored
Fix typo at OR constructor
OR members should be the constructors arguments
1 parent 74855ff commit db16bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def has_object_permission(self, request, view, obj):
8787

8888
class OR(BasePermission):
8989
def __init__(self, *args):
90-
self.permissions = op1
90+
self.permissions = args
9191

9292
def has_permission(self, request, view):
9393
for permission in self.permissions:

0 commit comments

Comments
 (0)
0