1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Added 'Logged out' title to admin log-out page

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-11 02:49:51 +00:00
parent 0a73004769
commit 356c2e7826

View File

@ -36,7 +36,7 @@ def logout(request, next_page=None):
try: try:
del request.session[SESSION_KEY] del request.session[SESSION_KEY]
except KeyError: except KeyError:
return render_to_response('registration/logged_out', context_instance=RequestContext(request)) return render_to_response('registration/logged_out', {'title': 'Logged out'}, context_instance=RequestContext(request))
else: else:
# Redirect to this page until the session has been cleared. # Redirect to this page until the session has been cleared.
return HttpResponseRedirect(next_page or request.path) return HttpResponseRedirect(next_page or request.path)