--- a/sdi/views.py Fri Jul 16 10:34:35 2010 +0530
+++ b/sdi/views.py Fri Jul 16 10:39:55 2010 +0530
@@ -152,6 +152,10 @@
except MultiValueDictKeyError:
return render_to_response("cnf_wsp_ptc.html", {"user":user})
+ user_info.status_of_attending_workshop = "3"
+ user_info.has_laptop_for_workshop = has_laptop
+ user_info.save()
+
return render_to_response("attending_wsp.html")
else:
return render_to_response("cnf_wsp_ptc.html", {"user":user})
--- a/templates/cnf_wsp_ptc.html Fri Jul 16 10:34:35 2010 +0530
+++ b/templates/cnf_wsp_ptc.html Fri Jul 16 10:39:55 2010 +0530
@@ -11,8 +11,8 @@
Are you bringing your own laptop:<br />
<form action="?email={{user.email}}" method=post>
<ul>
- <li><input type=radio name="lap_status">Yes</li>
- <li><input type=radio name="lap_status">No</li>
+ <li><input type=radio name="lap_status" value=True>Yes</li>
+ <li><input type=radio name="lap_status" value=False>No</li>
</ul>
<input type=submit value="I confirm my participation in the Python workshop" />
</form>