confirm wsp_participation view is complete now anoop
authornishanth
Fri, 16 Jul 2010 10:39:55 +0530
branchanoop
changeset 106 39b0b9a71778
parent 105 2e3fe11a3fcb
child 107 9fd140628988
confirm wsp_participation view is complete now
sdi/views.py
templates/cnf_wsp_ptc.html
--- 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>