fixed a typo anoop
authornishanth
Sat, 17 Jul 2010 01:47:13 +0530
branchanoop
changeset 130 384049c3bcb8
parent 129 b5dfde8e43a9
child 131 04158b6bfa7e
fixed a typo
sdi/views.py
templates/cnf_sgd_ptc.html
--- a/sdi/views.py	Sat Jul 17 01:44:41 2010 +0530
+++ b/sdi/views.py	Sat Jul 17 01:47:13 2010 +0530
@@ -215,7 +215,7 @@
     form = ParticipantInfoForm(request.POST)
     if request.method == "POST" and form.is_valid():
         data = form.cleaned_data
-        participant_info.has_laptop_for_sagedays = True if data['has_laptop'] == "Yes" else False
+        participant_info.has_laptop_for_sagedays = True if data['has_laptop_for_sagedays'] == "Yes" else False
         participant_info.sprinted_already = True if data['sprinted_already'] == "Yes" else False
         participant_info.will_sprint = data['will_sprint']
         participant_info.save()
--- a/templates/cnf_sgd_ptc.html	Sat Jul 17 01:44:41 2010 +0530
+++ b/templates/cnf_sgd_ptc.html	Sat Jul 17 01:47:13 2010 +0530
@@ -12,8 +12,8 @@
 <br />
 <form action="?email={{user.email}}" method=post>
 		Will you bring your own laptop for Sage Days 25:
-		<ul><li><input type="radio" name="has_laptop" value="Yes" /> Yes </li>
-		<li><input type="radio" name="has_laptop" value="No" /> No </li></ul>
+		<ul><li><input type="radio" name="has_laptop_for_sagedays" value="Yes" /> Yes </li>
+		<li><input type="radio" name="has_laptop_for_sagedays" value="No" /> No </li></ul>
 
 Have you participated in any kind of coding sprints:
 <ul><li><input type="radio" name="sprinted_already" value="Yes" /> Yes </li>