sdi/views.py
branchanoop
changeset 104 7630d7f3613a
parent 102 ef0012eb7695
child 106 39b0b9a71778
equal deleted inserted replaced
103:f874ddbd7952 104:7630d7f3613a
   145         return render_to_response("attending_wsp.html")
   145         return render_to_response("attending_wsp.html")
   146     elif status != "2":
   146     elif status != "2":
   147         raise Http404
   147         raise Http404
   148 
   148 
   149     if request.method == "POST":
   149     if request.method == "POST":
   150         pass
   150         try:
       
   151             has_laptop = request.POST['lap_status']
       
   152         except MultiValueDictKeyError:
       
   153             return render_to_response("cnf_wsp_ptc.html", {"user":user})
       
   154 
       
   155         return render_to_response("attending_wsp.html")
   151     else:
   156     else:
   152         return render_to_response("cnf_wsp_ptc.html", {"user":user})
   157         return render_to_response("cnf_wsp_ptc.html", {"user":user})
   153 
   158 
   154 def admin_login(request):
   159 def admin_login(request):
   155     """ basic login.
   160     """ basic login.