mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
fixed api_view decorator useage
This commit is contained in:
parent
c6240f4514
commit
8d2774dc97
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user