Commit 452eb81f by Tom Christie

Merge pull request #1140 from doronpr/patch-1

corrected doc for throttle_classes decorator
parents 5a9d5b30 8a1d3275
...@@ -59,7 +59,7 @@ using the `APIView` class based views. ...@@ -59,7 +59,7 @@ using the `APIView` class based views.
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')
@throttle_classes(UserRateThrottle) @throttle_classes([UserRateThrottle])
def example_view(request, format=None): def example_view(request, format=None):
content = { content = {
'status': 'request was permitted' 'status': 'request was permitted'
......
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