

def process_response(self, request, response):
    key = settings.FLASH_COOKIE_NAME
    data = getattr(local, 'flash_message', None)
    try:
        if request:
            response.set_cookie(key, value=data)
        else:
            response.delete_cookie(key)
    except Exception:
        pass
    return response

dataset/ETHPy150Open IanLewis/kay/kay/utils/flash.py FlashMiddleware.process_response/VarMisuse@36/46 `data`->`request`