Skip to content

Commit 030119c

Browse files
authored
Merge pull request #6386 from philratcliffe/fix_missing_import_in_example_code
Fix missing import in example code
2 parents 97a4795 + 1a9548d commit 030119c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ __Note:__ when you set new permission classes through class attribute or decorat
104104

105105
Provided they inherit from `rest_framework.permissions.BasePermission`, permissions can be composed using standard Python bitwise operators. For example, `IsAuthenticatedOrReadOnly` could be written:
106106

107-
from rest_framework.permissions import BasePermission, IsAuthenticated
107+
from rest_framework.permissions import BasePermission, IsAuthenticated, SAFE_METHODS
108108
from rest_framework.response import Response
109109
from rest_framework.views import APIView
110110

0 commit comments

Comments
 (0)