def can_disable_rate_limit(clz):
 if (not issubclass(clz, APIView)):
  msg = u'{clz} is not a Django Rest Framework APIView subclass.'.format(clz=clz)
  LOGGER.warning(msg)
  return clz
 if hasattr(clz, 'check_throttles'):
  clz.check_throttles = _check_throttles_decorator(clz.check_throttles)
 return clz

def can_disable_rate_limit ( clz ) : if ( not issubclass ( clz , APIView ) ) : msg = u'{clz} is not a Django Rest Framework APIView subclass.' . format ( clz = clz ) LOGGER . warning ( msg ) return clz if hasattr ( clz , 'check_throttles' ) : clz . check_throttles = _check_throttles_decorator ( clz . check_throttles ) return clz
class decorator that allows rate limiting to be disabled .