AnonRateThrottle should always allow authenticated users. Closes #994

This commit is contained in:
Tom Christie 2013-08-15 21:36:45 +01:00
parent 7bc63fbb11
commit f34b9ff049

View File

@ -96,6 +96,9 @@ class SimpleRateThrottle(BaseThrottle):
return True
self.key = self.get_cache_key(request, view)
if self.key is None:
return True
self.history = cache.get(self.key, [])
self.now = self.timer()