diff options
| author | Tom Christie | 2012-11-01 02:12:20 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-11-01 02:12:20 -0700 |
| commit | 204db7bdaa59cd17f762d6cf0e6a8623c2cc9939 (patch) | |
| tree | 337072bbbb550b4ddb83071b93ee04f2a73a5006 /docs/api-guide/throttling.md | |
| parent | 027c9079f62322fe933bdfd4438f23cf4848e3cc (diff) | |
| parent | 756297ad1d07f56459471bff041828850ace0496 (diff) | |
| download | django-rest-framework-204db7bdaa59cd17f762d6cf0e6a8623c2cc9939.tar.bz2 | |
Merge pull request #349 from ZestCore/master
Documentation Fix for Auth/Throttling API guide + 'from_native' bug
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', |
