sdi/views.py
branchanoop
changeset 70 58cafee2ee89
parent 67 b9690fbf78af
child 72 3673ed3ca27c
equal deleted inserted replaced
69:5ae81766e3e5 70:58cafee2ee89
   120             return render_to_response("login.html", {"form":form})
   120             return render_to_response("login.html", {"form":form})
   121     else:
   121     else:
   122         form = LoginForm()
   122         form = LoginForm()
   123         return render_to_response("login.html", {"form":form})
   123         return render_to_response("login.html", {"form":form})
   124 
   124 
       
   125 @login_required
   125 def admin_logout(request):
   126 def admin_logout(request):
   126     """ simply logout.
   127     """ simply logout.
   127     """
   128     """
   128 
   129 
   129     logout(request)
   130     logout(request)