# HG changeset patch # User nishanth # Date 1275742114 -19800 # Node ID 29d7d70c9273faa5d068616d1755f150465d2f48 # Parent ce2b84e6f24a8eddfcfdde4437758e8a6fc5ab8c added new fields to registrant. diff -r ce2b84e6f24a -r 29d7d70c9273 sdi/forms.py --- a/sdi/forms.py Sat Jun 05 18:07:11 2010 +0530 +++ b/sdi/forms.py Sat Jun 05 18:18:34 2010 +0530 @@ -10,6 +10,7 @@ topics_interested = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple, choices=TOPICS_CHOICES, required=False) class Meta: model = Registrant + exclude = ['priority_for_attending', 'selected_for_attending'] verification_code = CaptchaField() def clean_email(self): diff -r ce2b84e6f24a -r 29d7d70c9273 sdi/models.py --- a/sdi/models.py Sat Jun 05 18:07:11 2010 +0530 +++ b/sdi/models.py Sat Jun 05 18:18:34 2010 +0530 @@ -59,6 +59,10 @@ #address = models.TextField(help_text="To send DVD containing tutorials on Python if required.", blank=True) address = models.TextField(blank=True) phone_num = models.CharField(max_length=15, verbose_name="Phone Number", blank=True) + acco_required = models.BooleanField(verbose_name="Need accomodation", default=False) + priority_for_attending = models.CharField(max_length=1, default="3") + selected_for_attending = models.BooleanField(default=False) + likeliness_of_attending = models.CharField(max_length=1, choices=LIKELINESS_CHOICES)