Commit 49df775e authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

fix logout

parent d3e3fb60
......@@ -401,8 +401,9 @@ def logout(request, template='registration/logged_out.html', extra_context={}):
response['Location'] = next
response.status_code = 302
return response
html = render_to_string(template, context_instance=get_context(request, extra_context))
return HttpResponse(html)
context = get_context(request, extra_context)
response.write(render_to_string(template, context_instance=context))
return response
def activate(request):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment