diff options
| author | Tom Christie | 2012-10-17 15:41:57 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-17 15:41:57 +0100 | 
| commit | cab4a2a5ad17545ac435785bf55b0b3a6c8f932c (patch) | |
| tree | 9f7ede0e3a81e65ba952b068b00d49b6764e0adc /docs/api-guide/throttling.md | |
| parent | b5daa40852fb5936e6cddb31ecda5c4b40175cd4 (diff) | |
| download | django-rest-framework-cab4a2a5ad17545ac435785bf55b0b3a6c8f932c.tar.bz2 | |
Split up doc sections more cleanly
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 3fb95ae3..22e34187 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -63,6 +63,8 @@ Or, if you're using the `@api_view` decorator with function based views.          }          return Response(content) +--- +  # API Reference  ## AnonRateThrottle @@ -144,6 +146,8 @@ For example, given the following views...  User requests to either `ContactListView` or `ContactDetailView` would be restricted to a total of 1000 requests per-day.  User requests to `UploadView` would be restricted to 20 requests per day. +--- +  # Custom throttles  To create a custom throttle, override `BaseThrottle` and implement `.allow_request(request, view)`.  The method should return `True` if the request should be allowed, and `False` otherwise. | 
