aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreofs2012-10-17 10:41:23 +0300
committereofs2012-10-17 10:41:23 +0300
commit520a183cc68f5dc2b581456f50b32d3f031ff4af (patch)
tree065edf416bd39d493913f277fb39382d10e9420b
parentae680b13da8b23682c31ae0cab19bfbe61d76897 (diff)
downloaddjango-rest-framework-520a183cc68f5dc2b581456f50b32d3f031ff4af.tar.bz2
Typo in class name
-rw-r--r--rest_framework/throttling.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_framework/throttling.py b/rest_framework/throttling.py
index 566c277d..6e7a0b72 100644
--- a/rest_framework/throttling.py
+++ b/rest_framework/throttling.py
@@ -22,7 +22,7 @@ class BaseThrottle(object):
return None
-class SimpleRateThottle(BaseThrottle):
+class SimpleRateThrottle(BaseThrottle):
"""
A simple cache implementation, that only requires `.get_cache_key()`
to be overridden.
@@ -133,7 +133,7 @@ class SimpleRateThottle(BaseThrottle):
return remaining_duration / float(available_requests)
-class AnonRateThrottle(SimpleRateThottle):
+class AnonRateThrottle(SimpleRateThrottle):
"""
Limits the rate of API calls that may be made by a anonymous users.
@@ -153,7 +153,7 @@ class AnonRateThrottle(SimpleRateThottle):
}
-class UserRateThrottle(SimpleRateThottle):
+class UserRateThrottle(SimpleRateThrottle):
"""
Limits the rate of API calls that may be made by a given user.
@@ -175,7 +175,7 @@ class UserRateThrottle(SimpleRateThottle):
}
-class ScopedRateThrottle(SimpleRateThottle):
+class ScopedRateThrottle(SimpleRateThrottle):
"""
Limits the rate of API calls by different amounts for various parts of
the API. Any view that has the `throttle_scope` property set will be