diff --git a/members/throttles.py b/members/throttles.py new file mode 100644 index 0000000..0c1e17b --- /dev/null +++ b/members/throttles.py @@ -0,0 +1,9 @@ +from rest_framework.throttling import UserRateThrottle + + +class BurstRateThrottle(UserRateThrottle): + scope = 'burst' + + +class SustainedRateThrottle(UserRateThrottle): + scope = 'sustained'