cri_api.throttle module
- class cri_api.throttle.UserRateThrottle[source]
Bases:
rest_framework.throttling.SimpleRateThrottle
Imported from Django Rest Framework, rest_framework/throttling.py
Same as DRF’s UserRateThrottle class but ignores super users.
- get_cache_key(request, view)[source]
Should return a unique cache-key which can be used for throttling. Must be overridden.
May return None if the request should not be throttled.
- scope = 'user'