project/scipycon/registration/models.py
changeset 137 ec6e58c639bf
parent 117 1b68c8aa6091
child 198 92fbbbc4c97a
child 236 29ecd3dd6565
--- a/project/scipycon/registration/models.py	Wed Jul 21 02:05:33 2010 +0530
+++ b/project/scipycon/registration/models.py	Wed Jul 21 02:06:51 2010 +0530
@@ -5,8 +5,6 @@
 
 from project.scipycon.registration.labels import WIFI_CHOICES
 from project.scipycon.registration.labels import WIFI_HELP
-from project.scipycon.registration.utils import send_confirmation_payment_email
-from project.scipycon.registration.utils import send_banking_fix_email
 
 
 SIZE_CHOICES = (
@@ -14,12 +12,24 @@
     ('M', 'M'),
     ('L', 'L'),
     ('XL', 'XL'),
+    ('XXL', 'XXL'),
+    )
+
+OCCUPATION_CHOICES = (
+    ('Education: Student', 'Education: Student'),
+    ('Education: Faculty', 'Education: Faculty'),
+    ('Education: Research', 'Education: Research'),
+    ('Education: Other', 'Education: Other'),
+    ('Corporate: Research', 'Corporate: Research'),
+    ('Corporate: Other', 'Corporate: Other'),
+    ('Other', 'Other')
     )
 
 
 class Wifi(base_models.ScopedBase):
     """Defines wifi options at SciPy.in
     """
+
     user = models.ForeignKey(User)
 
     wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
@@ -35,7 +45,8 @@
 
     organisation = models.CharField(max_length=255, blank=True)
 
-    occupation = models.CharField(max_length=255, blank=True)
+    occupation = models.CharField(max_length=255,
+                                  choices=OCCUPATION_CHOICES, blank=True)
 
     city = models.CharField(max_length=255, blank=True)
 
@@ -43,7 +54,7 @@
 
     phone_num = models.CharField(max_length=14, blank=True)
 
-    tshirt = models.CharField(max_length=2, choices=SIZE_CHOICES)
+    tshirt = models.CharField(max_length=3, choices=SIZE_CHOICES)
 
     conference = models.BooleanField(default=False)