mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
make timer method static one
This commit is contained in:
parent
8812394ed8
commit
130dd0ec09
|
@ -60,7 +60,7 @@ class SimpleRateThrottle(BaseThrottle):
|
|||
Previous request information used for throttling is stored in the cache.
|
||||
"""
|
||||
cache = default_cache
|
||||
timer = time.time
|
||||
timer = staticmethod(time.time)
|
||||
cache_format = 'throttle_%(scope)s_%(ident)s'
|
||||
scope = None
|
||||
THROTTLE_RATES = api_settings.DEFAULT_THROTTLE_RATES
|
||||
|
|
Loading…
Reference in New Issue
Block a user