# HG changeset patch # User nishanth # Date 1275906001 -19800 # Node ID 58cafee2ee8997f0cb3cfe52ff7b72735c2d7e6c # Parent 5ae81766e3e59ea02c44276553f30a4f32b4fe83 now only logged in users can logout diff -r 5ae81766e3e5 -r 58cafee2ee89 sdi/views.py --- a/sdi/views.py Mon Jun 07 15:48:41 2010 +0530 +++ b/sdi/views.py Mon Jun 07 15:50:01 2010 +0530 @@ -122,6 +122,7 @@ form = LoginForm() return render_to_response("login.html", {"form":form}) +@login_required def admin_logout(request): """ simply logout. """