Merge pull request #6386 from philratcliffe/fix_missing_import_in_example_code

Fix missing import in example code
This commit is contained in:
Xavier Ordoquy 2018-12-28 17:54:41 +01:00 committed by GitHub
commit 030119c117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,7 @@ __Note:__ when you set new permission classes through class attribute or decorat
Provided they inherit from `rest_framework.permissions.BasePermission`, permissions can be composed using standard Python bitwise operators. For example, `IsAuthenticatedOrReadOnly` could be written:
from rest_framework.permissions import BasePermission, IsAuthenticated
from rest_framework.permissions import BasePermission, IsAuthenticated, SAFE_METHODS
from rest_framework.response import Response
from rest_framework.views import APIView