projects
/
astakos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e3fb6
)
fix logout
author
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 3 Feb 2012 14:12:30 +0000
(16:12 +0200)
committer
Sofia Papagiannaki
<papagian@gmail.com>
Fri, 3 Feb 2012 14:12:30 +0000
(16:12 +0200)
astakos/im/views.py
patch
|
blob
|
history
diff --git
a/astakos/im/views.py
b/astakos/im/views.py
index
11d421b
..
f44550b
100644
(file)
--- a/
astakos/im/views.py
+++ b/
astakos/im/views.py
@@
-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):
"""