Commit 8d2774dc by Stephan Groß

fixed api_view decorator useage

parent c6240f45
...@@ -37,7 +37,7 @@ You can also set the renderers used for an individual view, using the `APIView` ...@@ -37,7 +37,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(('POST',)), @api_view(['POST'])
@parser_classes((YAMLParser,)) @parser_classes((YAMLParser,))
def example_view(request, format=None): 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