# HG changeset patch # User nishanth # Date 1279311879 -19800 # Node ID 04158b6bfa7eeb664a0cfe88d9ec0ae1c664ddf3 # Parent 384049c3bcb82da555d143c754d9fc8df1ab1cb1 somehow thought this kinda forms are better diff -r 384049c3bcb8 -r 04158b6bfa7e 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) +