sdi/models.py
branchanoop
changeset 49 eccfa73e136b
parent 45 29d7d70c9273
child 74 84179d1bdc7e
--- a/sdi/models.py	Sat Jun 05 19:18:40 2010 +0530
+++ b/sdi/models.py	Sat Jun 05 20:00:16 2010 +0530
@@ -36,6 +36,12 @@
                       ('1', "Will not attend"),
                      )
 
+T_SHIRT_CHOICES = (("S","S"),
+                   ("M","M"),
+                   ("L","L"),
+                   ("XL","XL"),                   
+                  )
+
 class Registrant(models.Model):
     """ A model to hold the details of registered users.
     """
@@ -44,6 +50,7 @@
     last_name =  models.CharField(max_length=30)
     email = models.EmailField()
     gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
+    t_shirt_size = models.CharField(max_length=2, choices=T_SHIRT_CHOICES, verbose_name="T-Shirt size")
 
     profession = models.CharField(max_length=20)
     affiliated_to = models.CharField(max_length=30, verbose_name="Affiliated Institution/Company")