fix a b0rked code example in the permissions section of api guide

This commit is contained in:
Wim Glenn 2016-08-12 14:33:35 -05:00
parent 964f82528c
commit 0a48d21e09

View File

@ -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 = {