Commit c099d9aa by wwj718

import permission_classes

many people don't know how to import permission_classes
parent f7d44dfa
......@@ -88,6 +88,8 @@ using the `APIView` class 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')
@permission_classes((IsAuthenticated, ))
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