fixed api_view decorator useage

This commit is contained in:
Stephan Groß 2012-10-29 09:07:42 +01:00
parent c6240f4514
commit 8d2774dc97

View File

@ -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.
@api_view(('POST',)),
@api_view(['POST'])
@parser_classes((YAMLParser,))
def example_view(request, format=None):
"""