Commit 58658420 by Stephan Groß

fixed api_view decorator useage

parent 2de89f2d
...@@ -42,7 +42,7 @@ You can also set the renderers used for an individual view, using the `APIView` ...@@ -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):
""" """
......
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