

def accessed(self, identifier, **kwargs):
    "\n        Handles recording the user's access.\n        \n        Does everything the ``CacheThrottle`` class does, plus logs the\n        access within the database using the ``ApiAccess`` model.\n        "
    from tastypie.models import ApiAccess
    super(CacheDBThrottle, self).accessed(identifier, **kwargs)
    ApiAccess.objects.create(identifier=identifier, url=kwargs.get('url', ''), request_method=kwargs.get('request_method', ''))

dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie/throttle.py CacheDBThrottle.accessed/original