mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 03:54:01 +03:00
fixed api_view decorator useage
This commit is contained in:
parent
2de89f2d53
commit
5865842019
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user