Commit bbe5044c by Tom Christie

Merge pull request #3223 from wwj718/patch-1

import permission_classes
parents 38a1b3ec c099d9aa
...@@ -88,6 +88,8 @@ using the `APIView` class based views. ...@@ -88,6 +88,8 @@ 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
@api_view('GET') @api_view('GET')
@permission_classes((IsAuthenticated, )) @permission_classes((IsAuthenticated, ))
def example_view(request, format=None): def example_view(request, format=None):
......
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