diff --git a/docs/api-guide/throttling.md b/docs/api-guide/throttling.md index 58578a23e..d9dcfaeb0 100644 --- a/docs/api-guide/throttling.md +++ b/docs/api-guide/throttling.md @@ -187,6 +187,7 @@ The following is an example of a rate throttle, that will randomly throttle 1 in import random class RandomRateThrottle(throttling.BaseThrottle): + import random def allow_request(self, request, view): return random.randint(1, 10) != 1