added t-shirt size into models. anoop
authoranoop
Sat, 05 Jun 2010 20:00:16 +0530
branchanoop
changeset 49 eccfa73e136b
parent 48 a3e6f9470549
child 50 7ebcbb02fda0
added t-shirt size into models.
sdi/models.py
--- 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")