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
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