sdi/models.py
branchanoop
changeset 213 ffe5ef840fde
parent 174 d979d1bc1c4e
child 233 c5df028e4438
equal deleted inserted replaced
212:5c71757e7e0e 213:ffe5ef840fde
    53 WORKSHOP_ATTEND_CHOICES = (("3", "Is attending"),
    53 WORKSHOP_ATTEND_CHOICES = (("3", "Is attending"),
    54                            ("2", "Has been selected but not confirmed participation"),
    54                            ("2", "Has been selected but not confirmed participation"),
    55                            ("1", "Has requested for a workshop"),
    55                            ("1", "Has requested for a workshop"),
    56                            ("0", "Does not need a workshop"))
    56                            ("0", "Does not need a workshop"))
    57 
    57 
    58 ACCO_CHOICES = (("4", "Has requested but request has been rejected"),
    58 ACCO_CHOICES = (("3", "Has requested but request has been rejected"),
    59                 ("3", "Has been given accomodation"),
    59                 ("2", "Has been given accomodation"),
    60                 ("1", "Has requested for accomodation"),
    60                 ("1", "Has requested for accomodation"),
    61                 ("0", "Does not need acco"))
    61                 ("0", "Does not need acco"))
       
    62 
       
    63 ACCO_LOCATION_CHOICES = (("2", "NITIE"),
       
    64                          ("1", "IITB Guest house"),
       
    65                          ("0", "IITB Hostel"))
    62 
    66 
    63 class Registrant(models.Model):
    67 class Registrant(models.Model):
    64     """ A model to hold the details of registered users.
    68     """ A model to hold the details of registered users.
    65     """
    69     """
    66 
    70 
   109     registrant = models.ForeignKey(Registrant)
   113     registrant = models.ForeignKey(Registrant)
   110     status_of_attending_sagedays = models.CharField(max_length=1, default="0", choices=EVENT_ATTEND_CHOICES)
   114     status_of_attending_sagedays = models.CharField(max_length=1, default="0", choices=EVENT_ATTEND_CHOICES)
   111     status_of_attending_workshop = models.CharField(max_length=1, default="0", choices=WORKSHOP_ATTEND_CHOICES)
   115     status_of_attending_workshop = models.CharField(max_length=1, default="0", choices=WORKSHOP_ATTEND_CHOICES)
   112     status_of_accomodation = models.CharField(max_length=1, default="0", choices=ACCO_CHOICES)
   116     status_of_accomodation = models.CharField(max_length=1, default="0", choices=ACCO_CHOICES)
   113     has_laptop_for_workshop = models.BooleanField(default=False)
   117     has_laptop_for_workshop = models.BooleanField(default=False)
   114     
   118     acco_location = models.CharField(max_length=1, choices=ACCO_LOCATION_CHOICES, null=True)