def backup_csrf_token(context, storage=None):
    if storage is None:
        storage = Context()
    storage['csrf_token'] = smart_str(context.get('csrf_token', 'NOTPROVIDED'))
    return storage
Get the CSRF token and convert it to a string (since it's lazy)
dataset/ETHPy150Open codysoyland/django-phased/phased/utils.py/backup_csrf_token