1 | Index: django/contrib/auth/views.py
|
---|
2 | ===================================================================
|
---|
3 | --- django/contrib/auth/views.py (revision 3490)
|
---|
4 | +++ django/contrib/auth/views.py (working copy)
|
---|
5 | @@ -35,7 +35,7 @@
|
---|
6 | "Logs out the user and displays 'You are logged out' message."
|
---|
7 | from django.contrib.auth import logout
|
---|
8 | logout(request)
|
---|
9 | - if next_page is None:
|
---|
10 | + if next_page is None and request.user.is_anonymous():
|
---|
11 | return render_to_response(template_name, {'title': _('Logged out')}, context_instance=RequestContext(request))
|
---|
12 | else:
|
---|
13 | # Redirect to this page until the session has been cleared.
|
---|