Commit b508bc8d by José Padilla Committed by GitHub

Merge pull request #4396 from wimglenn/docs_bugfix

fix a b0rked code example in the permissions section of api guide
parents 964f8252 0a48d21e
...@@ -92,7 +92,7 @@ Or, if you're using the `@api_view` decorator with function based views. ...@@ -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.permissions import IsAuthenticated
from rest_framework.response import Response from rest_framework.response import Response
@api_view('GET') @api_view(['GET'])
@permission_classes((IsAuthenticated, )) @permission_classes((IsAuthenticated, ))
def example_view(request, format=None): def example_view(request, format=None):
content = { content = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment