Commit 9a778793 by Tom Christie

Adding imports to docs

parent bbe5044c
...@@ -88,7 +88,9 @@ using the `APIView` class based views. ...@@ -88,7 +88,9 @@ using the `APIView` class based views.
Or, if you're using the `@api_view` decorator with function based views. Or, if you're using the `@api_view` decorator with function based views.
from rest_framework.decorators import permission_classes from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
@api_view('GET') @api_view('GET')
@permission_classes((IsAuthenticated, )) @permission_classes((IsAuthenticated, ))
......
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