# HG changeset patch # User anoop # Date 1275748216 -19800 # Node ID eccfa73e136bfe7ad61d1033df72fc53fb2feb83 # Parent a3e6f9470549ad57bbb680ef64561e20ffb69e2d added t-shirt size into models. diff -r a3e6f9470549 -r eccfa73e136b 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")