diff options
| author | Doron Pearl | 2013-09-30 14:08:46 -0400 | 
|---|---|---|
| committer | Doron Pearl | 2013-09-30 14:08:46 -0400 | 
| commit | 8a1d3275795a6eea931cb0b67465c88d745bd2b6 (patch) | |
| tree | 383f3d95c31b6afc4d738d1a09205611039126ef /docs/api-guide/throttling.md | |
| parent | 5a9d5b303316e38730a87f587fb8224da72582ce (diff) | |
| download | django-rest-framework-8a1d3275795a6eea931cb0b67465c88d745bd2b6.tar.bz2 | |
corrected doc for throttle_classes decorator
the decorator actually expects an array and otherwise raise an exception.
Diffstat (limited to 'docs/api-guide/throttling.md')
| -rw-r--r-- | docs/api-guide/throttling.md | 2 | 
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' | 
