fixed api_view decorator useage

This commit is contained in:
Stephan Groß 2012-10-29 09:32:11 +01:00
parent 2de89f2d53
commit 5865842019

View File

@ -42,7 +42,7 @@ You can also set the renderers used for an individual view, using the `APIView`
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'])
@renderer_classes((JSONRenderer, JSONPRenderer)) @renderer_classes((JSONRenderer, JSONPRenderer))
def user_count_view(request, format=None): def user_count_view(request, format=None):
""" """