diff --git a/gracedb/throttles.py b/gracedb/throttles.py index 597db4b738f84a73787b040df7d802ec5857571c..6c9e5749d762f08efda02cb1018d0e5bcaa960f6 100644 --- a/gracedb/throttles.py +++ b/gracedb/throttles.py @@ -7,6 +7,10 @@ class PostOrPutUserRateThrottle(UserRateThrottle): This is mostly copied from the Rest Framework's SimpleRateThrottle except we now pass the request to throttle_success """ + # We don't want to throttle any safe methods + if request.method not in ['POST', 'PUT']: + return True + if self.rate is None: return True