mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
fix: change View class to Throttle class on SimpleRateThrottle Docstring (#8147)
This commit is contained in:
parent
4632b5daae
commit
cb206e4701
|
@ -52,7 +52,7 @@ class SimpleRateThrottle(BaseThrottle):
|
||||||
A simple cache implementation, that only requires `.get_cache_key()`
|
A simple cache implementation, that only requires `.get_cache_key()`
|
||||||
to be overridden.
|
to be overridden.
|
||||||
|
|
||||||
The rate (requests / seconds) is set by a `rate` attribute on the View
|
The rate (requests / seconds) is set by a `rate` attribute on the Throttle
|
||||||
class. The attribute is a string of the form 'number_of_requests/period'.
|
class. The attribute is a string of the form 'number_of_requests/period'.
|
||||||
|
|
||||||
Period should be one of: ('s', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day')
|
Period should be one of: ('s', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user