--- 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
+