--- 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)
+