diff options
| author | Tom Christie | 2012-11-01 23:11:28 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-01 23:11:28 +0000 |
| commit | 36e21153fbc60579c49e46c3f6488ff7bcb1f6ff (patch) | |
| tree | 86097abd5482538c7c026dd233566026b6e6bcad /docs/api-guide/throttling.md | |
| parent | d327c5f531b341ad980d20454211b02b87f34d0e (diff) | |
| parent | 600289a8153eb70542551bab00d59fb7ff0065f0 (diff) | |
| download | django-rest-framework-36e21153fbc60579c49e46c3f6488ff7bcb1f6ff.tar.bz2 | |
Merge master
Diffstat (limited to 'docs/api-guide/throttling.md')
| -rw-r--r-- | docs/api-guide/throttling.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index bfda7079..b03bc9e0 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -31,8 +31,8 @@ The default throttling policy may be set globally, using the `DEFAULT_THROTTLE_C REST_FRAMEWORK = { 'DEFAULT_THROTTLE_CLASSES': ( - 'rest_framework.throttles.AnonThrottle', - 'rest_framework.throttles.UserThrottle' + 'rest_framework.throttling.AnonRateThrottle', + 'rest_framework.throttling.UserRateThrottle' ), 'DEFAULT_THROTTLE_RATES': { 'anon': '100/day', @@ -136,7 +136,7 @@ For example, given the following views... REST_FRAMEWORK = { 'DEFAULT_THROTTLE_CLASSES': ( - 'rest_framework.throttles.ScopedRateThrottle' + 'rest_framework.throttling.ScopedRateThrottle' ), 'DEFAULT_THROTTLE_RATES': { 'contacts': '1000/day', |
