added new fields to registrant.
--- 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):
--- 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)