From cb206e4701dd67f859c015bea111d0e77e364c4a Mon Sep 17 00:00:00 2001 From: Juan Benitez Date: Fri, 3 Sep 2021 07:00:23 -0500 Subject: [PATCH] fix: change View class to Throttle class on SimpleRateThrottle Docstring (#8147) --- rest_framework/throttling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py index 0ba2ba66b..e262b886b 100644 --- a/rest_framework/throttling.py +++ b/rest_framework/throttling.py @@ -52,7 +52,7 @@ class SimpleRateThrottle(BaseThrottle): A simple cache implementation, that only requires `.get_cache_key()` 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'. Period should be one of: ('s', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day')