diff --git a/api-guide/throttling.html b/api-guide/throttling.html index 13c9e8960..5e9ad789a 100644 --- a/api-guide/throttling.html +++ b/api-guide/throttling.html @@ -198,7 +198,7 @@ class UploadView(APIView):
User requests to either ContactListView
or ContactDetailView
would be restricted to a total of 1000 requests per-day. User requests to UploadView
would be restricted to 20 requests per day.
To implement a custom throttle, override BaseThrottle
and implement .allow_request(request)
. The method should return True
if the request should be allowed, and False
otherwise.
To create a custom throttle, override BaseThrottle
and implement .allow_request(request)
. The method should return True
if the request should be allowed, and False
otherwise.
Optionally you may also override the .wait()
method. If implemented, .wait()
should return a recomended number of seconds to wait before attempting the next request, or None
. The .wait()
method will only be called if .check_throttle()
has previously returned False
.