sdi/views.py
branchanoop
changeset 129 b5dfde8e43a9
parent 128 16b3557b4260
child 130 384049c3bcb8
equal deleted inserted replaced
128:16b3557b4260 129:b5dfde8e43a9
   216     if request.method == "POST" and form.is_valid():
   216     if request.method == "POST" and form.is_valid():
   217         data = form.cleaned_data
   217         data = form.cleaned_data
   218         participant_info.has_laptop_for_sagedays = True if data['has_laptop'] == "Yes" else False
   218         participant_info.has_laptop_for_sagedays = True if data['has_laptop'] == "Yes" else False
   219         participant_info.sprinted_already = True if data['sprinted_already'] == "Yes" else False
   219         participant_info.sprinted_already = True if data['sprinted_already'] == "Yes" else False
   220         participant_info.will_sprint = data['will_sprint']
   220         participant_info.will_sprint = data['will_sprint']
   221         user_info.status_of_attending_sagedays 
   221         participant_info.save()
       
   222 
       
   223         user_info.status_of_attending_sagedays = "3"
       
   224         user_info.save()
       
   225 
   222         return render_to_response("attending_sgd.html")
   226         return render_to_response("attending_sgd.html")
   223     else:
   227     else:
   224         return render_to_response("cnf_sgd_ptc.html", {"user":user})
   228         return render_to_response("cnf_sgd_ptc.html", {"user":user})
   225 
   229 
   226 
   230