project/scipycon/registration/models.py
branchpayments
changeset 276 325ec5a41269
parent 268 2d47a3eb5ec4
parent 275 679a9cab4bf1
child 294 7c12c63fef3b
equal deleted inserted replaced
268:2d47a3eb5ec4 276:325ec5a41269
    26     )
    26     )
    27 
    27 
    28 SEX_CHOICES = (
    28 SEX_CHOICES = (
    29     ('Male', 'Male'),
    29     ('Male', 'Male'),
    30     ('Female', 'Female'),
    30     ('Female', 'Female'),
    31     ('Other', 'Other')
       
    32     )
    31     )
    33 
    32 
    34 PAYMENT_MODE_CHOICES = (
    33 PAYMENT_MODE_CHOICES = (
    35     ('Cheque', 'Cheque'),
    34     ('Cheque', 'Cheque'),
    36     ('Demand Draft(DD)', 'Demand Draft(DD)'),
    35     ('Demand Draft(DD)', 'Demand Draft(DD)'),
    37     ('Net Banking', 'Net Banking')
    36     ('Net Banking', 'Net Banking')
    38     )
    37     )
       
    38 
    39 
    39 
    40 class Wifi(base_models.ScopedBase):
    40 class Wifi(base_models.ScopedBase):
    41     """Defines wifi options at SciPy.in
    41     """Defines wifi options at SciPy.in
    42     """
    42     """
    43 
    43 
    44     user = models.ForeignKey(User)
    44     user = models.ForeignKey(User)
    45 
    45 
    46     wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
    46     wifi = models.CharField(max_length=50, choices=WIFI_CHOICES,
    47                             help_text=WIFI_HELP, verbose_name="Laptop")
    47                             help_text=WIFI_HELP, verbose_name="Laptop")
       
    48 
       
    49     registration_id = models.CharField(
       
    50         max_length=255, verbose_name="Identification Number",
       
    51         help_text="- Provide the serial or identification number at the "
       
    52         "back of your laptop using which your laptop can be uniquely "
       
    53         "identified. Ex: 8BDB8FB (Service Tag on Dell Laptops).<br /> - "
       
    54         "This is for security reasons and will be used while you enter and "
       
    55         "leave the venue.<br /> - Please don't provide the model number "
       
    56         "like Dell Inspiron 1545. There may be many laptops of that model "
       
    57         "and hence your laptop cannot be uniquely identified.",
       
    58         blank=True, null=True)
    48 
    59 
    49 
    60 
    50 class Accommodation(base_models.ScopedBase):
    61 class Accommodation(base_models.ScopedBase):
    51     """Defines accommodation information for SciPy.in
    62     """Defines accommodation information for SciPy.in
    52     """
    63     """