def METHOD_NAME(self, view_event):
    if response_format == 'response-dict':
        return {
            'redirect': '/',
        }
    elif response_format == 'response-class':
        return RedirectResponse('/')