now only logged in users can logout anoop
authornishanth
Mon, 07 Jun 2010 15:50:01 +0530
branchanoop
changeset 70 58cafee2ee89
parent 69 5ae81766e3e5
child 71 c736873f35cb
now only logged in users can logout
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.
     """