project/scipycon/registration/models.py
changeset 198 92fbbbc4c97a
parent 137 ec6e58c639bf
child 226 53ea13a2893e
child 244 5e6411f210de
equal deleted inserted replaced
197:44f63728e9fa 198:92fbbbc4c97a
    23     ('Corporate: Research', 'Corporate: Research'),
    23     ('Corporate: Research', 'Corporate: Research'),
    24     ('Corporate: Other', 'Corporate: Other'),
    24     ('Corporate: Other', 'Corporate: Other'),
    25     ('Other', 'Other')
    25     ('Other', 'Other')
    26     )
    26     )
    27 
    27 
       
    28 SEX_CHOICES = (
       
    29     ('Male', 'Male'),
       
    30     ('Female', 'Female'),
       
    31     ('Other', 'Other')
       
    32     )
    28 
    33 
    29 class Wifi(base_models.ScopedBase):
    34 class Wifi(base_models.ScopedBase):
    30     """Defines wifi options at SciPy.in
    35     """Defines wifi options at SciPy.in
    31     """
    36     """
    32 
    37 
    33     user = models.ForeignKey(User)
    38     user = models.ForeignKey(User)
    34 
    39 
    35     wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
    40     wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
    36                             help_text=WIFI_HELP, verbose_name="Laptop")
    41                             help_text=WIFI_HELP, verbose_name="Laptop")
       
    42 
       
    43 
       
    44 class Accommodation(base_models.ScopedBase):
       
    45     """Defines accommodation information for SciPy.in
       
    46     """
       
    47 
       
    48     user = models.ForeignKey(User)
       
    49 
       
    50     sex = models.CharField(max_length=50, choices=SEX_CHOICES,
       
    51                            verbose_name="Gender",
       
    52                            blank=True, null=True)
       
    53 
       
    54     accommodation_required = models.BooleanField(
       
    55         default=False, blank=True,
       
    56         verbose_name="Accommodation required",
       
    57         help_text="Check if you need accommodation.")
       
    58 
       
    59     accommodation_days = models.IntegerField(
       
    60         default=0, blank=True,
       
    61         verbose_name="Number of days",
       
    62         help_text="Number of days the accommodation is required for?")
    37 
    63 
    38 
    64 
    39 class Registration(base_models.ScopedBase):
    65 class Registration(base_models.ScopedBase):
    40     """Defines registration at SciPy.in"""
    66     """Defines registration at SciPy.in"""
    41 
    67