[documentation] Throttling random request code example fix (#4451)

This commit is contained in:
Jakub Moliński 2016-08-30 11:37:48 +02:00 committed by Tom Christie
parent b683cd7afc
commit 80bd3b9722

View File

@ -188,7 +188,7 @@ The following is an example of a rate throttle, that will randomly throttle 1 in
class RandomRateThrottle(throttling.BaseThrottle):
def allow_request(self, request, view):
return random.randint(1, 10) == 1
return random.randint(1, 10) != 1
[cite]: https://dev.twitter.com/docs/error-codes-responses
[permissions]: permissions.md