mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Tweak description of example throttle.
This commit is contained in:
parent
e649f2ec61
commit
99ef0bcad9
|
@ -156,7 +156,7 @@ Optionally you may also override the `.wait()` method. If implemented, `.wait()
|
|||
|
||||
## 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):
|
||||
def allow_request(self, request, view):
|
||||
|
|
Loading…
Reference in New Issue
Block a user