From b15e105f846c1fbd0eabfb5b8e01ec5aafc2c8b3 Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Tue, 2 Oct 2018 17:23:31 +0200 Subject: [PATCH] Fix documentation typo in permissions --- 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 52bbb4746..3ad982d53 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -102,7 +102,7 @@ Or, if you're using the `@api_view` decorator with function based views. __Note:__ when you set new permission classes through class attribute or decorators you're telling the view to ignore the default list set over the __settings.py__ file. -Provided they inherit from `rest_framework.permissions.BasePermission`, permissions can be composed using standard Python bitwise operators. For example, `IsAdminOrReadOnly` could be written: +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.response import Response