Commit 99ef0bca by Tom Christie

Tweak description of example throttle.

parent e649f2ec
...@@ -156,7 +156,7 @@ Optionally you may also override the `.wait()` method. If implemented, `.wait() ...@@ -156,7 +156,7 @@ Optionally you may also override the `.wait()` method. If implemented, `.wait()
## Example ## Example
The following example will randomly throttle 1 in every 10 requests. The following is an example of a rate throttle, that will randomly throttle 1 in every 10 requests.
class RandomRateThrottle(throttles.BaseThrottle): class RandomRateThrottle(throttles.BaseThrottle):
def allow_request(self, request, view): def allow_request(self, request, view):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment