mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Merge pull request #1736 from robbyt/patch-2
minor doc fix, @api_view() needs an iterable
This commit is contained in:
commit
4086e0562c
|
@ -58,7 +58,7 @@ using the `APIView` class based views.
|
|||
|
||||
Or, if you're using the `@api_view` decorator with function based views.
|
||||
|
||||
@api_view('GET')
|
||||
@api_view(['GET'])
|
||||
@throttle_classes([UserRateThrottle])
|
||||
def example_view(request, format=None):
|
||||
content = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user