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 django-tastypie/django-tastypie/tastypie/throttle.py/CacheDBThrottle.accessed