'Logout a user and display a logout message.'

def _logout(self, request, login_url=None, message=None, status='success'):

    response = auth_views.logout(request, login_url)
    if (message is not None):
        self.logout_reason = message
        utils.add_logout_reason(request, response, message, status)
    return response
