예제 #1
0
def logout_detenderize_and_login(request, login_url=None):
    """
    Logs the user out and removes Tender cookies. Redirects to log-in page.
    
    """
    response = logout_then_login(request, login_url)
    detenderize_response(response)
    return response
예제 #2
0
def logout_detenderize_and_login(request, login_url=None):
    """
    Logs the user out and removes Tender cookies. Redirects to log-in page.
    
    """
    response = logout_then_login(request, login_url)
    detenderize_response(response)
    return response
예제 #3
0
def logout_and_detenderize(request, next_page=None, template_name='registration/logged_out.html'):
    """
    Logs out the user and removes Tender cookies.
    
    """
    response = logout(request, next_page, template_name)
    detenderize_response(response)
    return response
예제 #4
0
def logout_and_detenderize(request,
                           next_page=None,
                           template_name='registration/logged_out.html'):
    """
    Logs out the user and removes Tender cookies.
    
    """
    response = logout(request, next_page, template_name)
    detenderize_response(response)
    return response