From 1a9548db4ff102fea43c72f1bc1156336f5dba71 Mon Sep 17 00:00:00 2001 From: Phil Ratcliffe Date: Fri, 28 Dec 2018 16:10:08 +0000 Subject: [PATCH] Fix missing import in example code --- docs/api-guide/permissions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/permissions.md b/docs/api-guide/permissions.md index 238e996c4..a11ad7d2b 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -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