'Check if request should be throttled.
Raises an appropriate exception if the request is throttled.'

def check_throttles(self, request):

    for throttle in self.get_throttles():
        if (not throttle.allow_request(request, self)):
            self.throttled(request, throttle.wait())
