Merge pull request #3462 from theengineear/patch-1

Small doc typo `throttles` --> `throttling`
This commit is contained in:
Xavier Ordoquy 2015-10-01 10:22:55 +02:00
commit 689afd83cc

View File

@ -184,7 +184,7 @@ If the `.wait()` method is implemented and the request is throttled, then a `Ret
The following is an example of a rate throttle, that will randomly throttle 1 in every 10 requests.
class RandomRateThrottle(throttles.BaseThrottle):
class RandomRateThrottle(throttling.BaseThrottle):
def allow_request(self, request, view):
return random.randint(1, 10) == 1