somehow thought this kinda forms are better anoop
authornishanth
Sat, 17 Jul 2010 01:54:39 +0530
branchanoop
changeset 131 04158b6bfa7e
parent 130 384049c3bcb8
child 132 b8e5390e7920
somehow thought this kinda forms are better
sdi/forms.py
--- a/sdi/forms.py	Sat Jul 17 01:47:13 2010 +0530
+++ b/sdi/forms.py	Sat Jul 17 01:54:39 2010 +0530
@@ -1,7 +1,7 @@
 from django import forms
 from django.contrib.auth import authenticate
 
-from sage_days.sdi.models import Registrant, TOPICS_CHOICES, ParticipantInfo
+from sage_days.sdi.models import Registrant, TOPICS_CHOICES, ParticipantInfo, SPRINT_CHOICES
 from captcha.fields import CaptchaField
 
 class RegisterForm(forms.ModelForm):
@@ -181,8 +181,9 @@
 
     return myF(post_data) if post_data else myF()
 
-class ParticipantInfoForm(forms.ModelForm):
+class ParticipantInfoForm(forms.Form):
 
-    class Meta:
-        model = ParticipantInfo
-        exclude = ['participant']
+    has_laptop_for_sagedays = forms.ChoiceField(choices=(("Yes","Yes"), ("No", "No"))
+    sprinted_already = forms.ChoiceField(choices=(("Yes","Yes"), ("No", "No"))
+    will_sprint = forms.ChoiceField(choices=SPRINT_CHOICES)
+