# HG changeset patch # User Madhusudan.C.S # Date 1281084770 -19800 # Node ID ffe5ef840fde198d8adbecec9f01a1e1c4f98df4 # Parent 5c71757e7e0e9e0a420c2573b332c0e4b035e9c2 Added an extra field to RegistrantInfo Model to hold accommodation location of participants. diff -r 5c71757e7e0e -r ffe5ef840fde sdi/models.py --- a/sdi/models.py Fri Aug 06 14:22:10 2010 +0530 +++ b/sdi/models.py Fri Aug 06 14:22:50 2010 +0530 @@ -55,11 +55,15 @@ ("1", "Has requested for a workshop"), ("0", "Does not need a workshop")) -ACCO_CHOICES = (("4", "Has requested but request has been rejected"), - ("3", "Has been given accomodation"), +ACCO_CHOICES = (("3", "Has requested but request has been rejected"), + ("2", "Has been given accomodation"), ("1", "Has requested for accomodation"), ("0", "Does not need acco")) +ACCO_LOCATION_CHOICES = (("2", "NITIE"), + ("1", "IITB Guest house"), + ("0", "IITB Hostel")) + class Registrant(models.Model): """ A model to hold the details of registered users. """ @@ -111,4 +115,4 @@ status_of_attending_workshop = models.CharField(max_length=1, default="0", choices=WORKSHOP_ATTEND_CHOICES) status_of_accomodation = models.CharField(max_length=1, default="0", choices=ACCO_CHOICES) has_laptop_for_workshop = models.BooleanField(default=False) - + acco_location = models.CharField(max_length=1, choices=ACCO_LOCATION_CHOICES, null=True)