def invalidate_grant(self, grant):
        if constants.DELETE_EXPIRED:
            grant.delete()
        else:
            grant.expires = now() - timedelta(days=1)
            grant.save()
dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/oauth2/views.py/AccessTokenView.invalidate_grant/original