fix api_view decorator useage

This commit is contained in:
Stephan Groß 2012-10-29 09:25:17 +01:00
parent 73cf859e26
commit ff4804a360

View File

@ -50,7 +50,7 @@ You can also set the authentication policy on a per-view basis, using the `APIVi
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.
@api_view(('GET',)), @api_view(['GET'])
@authentication_classes((SessionAuthentication, UserBasicAuthentication)) @authentication_classes((SessionAuthentication, UserBasicAuthentication))
@permissions_classes((IsAuthenticated,)) @permissions_classes((IsAuthenticated,))
def example_view(request, format=None): def example_view(request, format=None):