Skip to content

Commit 1a9548d

Browse files
committed
Fix missing import in example code
1 parent 97a4795 commit 1a9548d

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)