From 0a48d21e09124c12417bcb37fa531763768f330f Mon Sep 17 00:00:00 2001 From: Wim Glenn Date: Fri, 12 Aug 2016 14:33:35 -0500 Subject: [PATCH] fix a b0rked code example in the permissions section of api guide --- 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 e0838e94a..36719c48f 100644 --- a/docs/api-guide/permissions.md +++ b/docs/api-guide/permissions.md @@ -92,7 +92,7 @@ Or, if you're using the `@api_view` decorator with function based views. from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response - @api_view('GET') + @api_view(['GET']) @permission_classes((IsAuthenticated, )) def example_view(request, format=None): content = {