def accessed(self, identifier, **kwargs):
        # Do the import here, instead of top-level, so that the model is
        # only required when using this throttling mechanism.
        from tastypie.models import ApiAccess
        super(CacheDBThrottle, self).accessed(identifier, **kwargs)
        # Write out the access to the DB for logging purposes.
        ApiAccess.objects.create(
            identifier=identifier,
            url=kwargs.get('url', ''),
            request_method=kwargs.get('request_method', '')
        )
Handles recording the user's access.
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie/throttle.py/CacheDBThrottle.accessed