sdi/views.py
branchanoop
changeset 106 39b0b9a71778
parent 104 7630d7f3613a
child 107 9fd140628988
equal deleted inserted replaced
105:2e3fe11a3fcb 106:39b0b9a71778
   150         try:
   150         try:
   151             has_laptop = request.POST['lap_status']
   151             has_laptop = request.POST['lap_status']
   152         except MultiValueDictKeyError:
   152         except MultiValueDictKeyError:
   153             return render_to_response("cnf_wsp_ptc.html", {"user":user})
   153             return render_to_response("cnf_wsp_ptc.html", {"user":user})
   154 
   154 
       
   155         user_info.status_of_attending_workshop = "3"
       
   156         user_info.has_laptop_for_workshop = has_laptop
       
   157         user_info.save()
       
   158 
   155         return render_to_response("attending_wsp.html")
   159         return render_to_response("attending_wsp.html")
   156     else:
   160     else:
   157         return render_to_response("cnf_wsp_ptc.html", {"user":user})
   161         return render_to_response("cnf_wsp_ptc.html", {"user":user})
   158 
   162 
   159 def admin_login(request):
   163 def admin_login(request):