added new fields to registrant. anoop
authornishanth
Sat, 05 Jun 2010 18:18:34 +0530
branchanoop
changeset 45 29d7d70c9273
parent 44 ce2b84e6f24a
child 46 d5c888744405
added new fields to registrant.
sdi/forms.py
sdi/models.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):
--- 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)