Add throttles.py for DRF

This commit is contained in:
Jan Tuomi
2017-05-27 11:50:00 +03:00
parent 9276f4cafb
commit 7d2953b389
+9
View File
@@ -0,0 +1,9 @@
from rest_framework.throttling import UserRateThrottle
class BurstRateThrottle(UserRateThrottle):
scope = 'burst'
class SustainedRateThrottle(UserRateThrottle):
scope = 'sustained'