Merge pull request #3223 from wwj718/patch-1

import permission_classes
This commit is contained in:
Tom Christie 2015-08-06 09:54:25 +01:00
commit bbe5044c04

View File

@ -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):