aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide
diff options
context:
space:
mode:
authorTom Christie2013-09-30 11:17:57 -0700
committerTom Christie2013-09-30 11:17:57 -0700
commit452eb81f5c602f675ea06d71d5feb628b662d9c6 (patch)
tree383f3d95c31b6afc4d738d1a09205611039126ef /docs/api-guide
parent5a9d5b303316e38730a87f587fb8224da72582ce (diff)
parent8a1d3275795a6eea931cb0b67465c88d745bd2b6 (diff)
downloaddjango-rest-framework-452eb81f5c602f675ea06d71d5feb628b662d9c6.tar.bz2
Merge pull request #1140 from doronpr/patch-1
corrected doc for throttle_classes decorator
Diffstat (limited to 'docs/api-guide')
-rw-r--r--docs/api-guide/throttling.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md
index cc469217..fc1525df 100644
--- a/docs/api-guide/throttling.md
+++ b/docs/api-guide/throttling.md
@@ -59,7 +59,7 @@ using the `APIView` class based views.
Or, if you're using the `@api_view` decorator with function based views.
@api_view('GET')
- @throttle_classes(UserRateThrottle)
+ @throttle_classes([UserRateThrottle])
def example_view(request, format=None):
content = {
'status': 'request was permitted'