diff options
| author | Tom Christie | 2012-10-29 01:50:42 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-10-29 01:50:42 -0700 |
| commit | ab5c28c5f97c7637d0ccbf6ca9cba02b4b8ad96f (patch) | |
| tree | 6d1ee204fb95966b18f8b4e9d452d837a6599df8 /docs/api-guide/throttling.md | |
| parent | 0c71b4c10095f8783f205fc134a475c04a27f01b (diff) | |
| parent | 586584201967d9810f649def51cef577c65d50fb (diff) | |
| download | django-rest-framework-ab5c28c5f97c7637d0ccbf6ca9cba02b4b8ad96f.tar.bz2 | |
Merge pull request #334 from minddust/restframework2
formatting docs commits
Diffstat (limited to 'docs/api-guide/throttling.md')
| -rw-r--r-- | docs/api-guide/throttling.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index d54433b1..bfda7079 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -32,8 +32,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.throttles.UserThrottle' + ), 'DEFAULT_THROTTLE_RATES': { 'anon': '100/day', 'user': '1000/day' @@ -102,8 +102,8 @@ For example, multiple user throttle rates could be implemented by using the foll REST_FRAMEWORK = { 'DEFAULT_THROTTLE_CLASSES': ( 'example.throttles.BurstRateThrottle', - 'example.throttles.SustainedRateThrottle', - ) + 'example.throttles.SustainedRateThrottle' + ), 'DEFAULT_THROTTLE_RATES': { 'burst': '60/min', 'sustained': '1000/day' @@ -136,8 +136,8 @@ For example, given the following views... REST_FRAMEWORK = { 'DEFAULT_THROTTLE_CLASSES': ( - 'rest_framework.throttles.ScopedRateThrottle', - ) + 'rest_framework.throttles.ScopedRateThrottle' + ), 'DEFAULT_THROTTLE_RATES': { 'contacts': '1000/day', 'uploads': '20/day' |
