diff options
| author | Tom Christie | 2013-08-21 21:31:59 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-08-21 21:31:59 +0100 |
| commit | 16ffdedd14ed842eb019414566705d8b8392ea63 (patch) | |
| tree | cd6fe551725d60b86a57ea5812f60f054e7c1f17 /docs/api-guide/throttling.md | |
| parent | 44ceef841543877a700c3fb4a0f84dfecbad0cbb (diff) | |
| parent | 2bcad32dcb57ae9419f6a901e081f0dcdc1a6f87 (diff) | |
| download | django-rest-framework-16ffdedd14ed842eb019414566705d8b8392ea63.tar.bz2 | |
Merge master
Diffstat (limited to 'docs/api-guide/throttling.md')
| -rw-r--r-- | docs/api-guide/throttling.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index 56f32f58..42f9c228 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -43,6 +43,10 @@ The rate descriptions used in `DEFAULT_THROTTLE_RATES` may include `second`, `mi You can also set the throttling policy on a per-view or per-viewset basis, using the `APIView` class based views. + from rest_framework.response import Response + from rest_framework.throttling import UserRateThrottle + from rest_framework.views import APIView + class ExampleView(APIView): throttle_classes = (UserRateThrottle,) |
