From 886f8b47510c830483b5adae1855593cdc3df2dc Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 14 Sep 2012 08:54:58 +0100 Subject: Tweak throttles and improve docs --- djangorestframework/tests/throttling.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'djangorestframework/tests/throttling.py') diff --git a/djangorestframework/tests/throttling.py b/djangorestframework/tests/throttling.py index 9ee4ffa4..3033614f 100644 --- a/djangorestframework/tests/throttling.py +++ b/djangorestframework/tests/throttling.py @@ -14,10 +14,12 @@ from djangorestframework.response import Response class User3SecRateThrottle(UserRateThrottle): rate = '3/sec' + scope = 'seconds' class User3MinRateThrottle(UserRateThrottle): rate = '3/min' + scope = 'minutes' class MockView(APIView): -- cgit v1.2.3