project/scipycon/registration/models.py
changeset 238 0149f28a4f74
parent 236 29ecd3dd6565
parent 226 53ea13a2893e
child 275 679a9cab4bf1
--- a/project/scipycon/registration/models.py	Thu Nov 18 01:20:54 2010 +0530
+++ b/project/scipycon/registration/models.py	Thu Nov 18 01:29:38 2010 +0530
@@ -25,6 +25,10 @@
     ('Other', 'Other')
     )
 
+SEX_CHOICES = (
+    ('Male', 'Male'),
+    ('Female', 'Female'),
+    )
 
 class Wifi(base_models.ScopedBase):
     """Defines wifi options at SciPy.in
@@ -36,6 +40,27 @@
                             help_text=WIFI_HELP, verbose_name="Laptop")
 
 
+class Accommodation(base_models.ScopedBase):
+    """Defines accommodation information for SciPy.in
+    """
+
+    user = models.ForeignKey(User)
+
+    sex = models.CharField(max_length=50, choices=SEX_CHOICES,
+                           verbose_name="Gender",
+                           blank=True, null=True)
+
+    accommodation_required = models.BooleanField(
+        default=False, blank=True,
+        verbose_name="Accommodation required",
+        help_text="Check if you need accommodation.")
+
+    accommodation_days = models.IntegerField(
+        default=0, blank=True,
+        verbose_name="Number of days",
+        help_text="Number of days the accommodation is required for?")
+
+
 class Registration(base_models.ScopedBase):
     """Defines registration at SciPy.in"""
 
@@ -80,6 +105,4 @@
             self.registrant.last_name, self.registrant.email)
 
 
-class Payment(base_models.ScopedBase):
-    """ Defines Payment Details of Users """
-    pass
+