34 ('3', "Unsure of attending"), |
34 ('3', "Unsure of attending"), |
35 ('2', "Might not attend"), |
35 ('2', "Might not attend"), |
36 ('1', "Will not attend"), |
36 ('1', "Will not attend"), |
37 ) |
37 ) |
38 |
38 |
|
39 T_SHIRT_CHOICES = (("S","S"), |
|
40 ("M","M"), |
|
41 ("L","L"), |
|
42 ("XL","XL"), |
|
43 ) |
|
44 |
39 class Registrant(models.Model): |
45 class Registrant(models.Model): |
40 """ A model to hold the details of registered users. |
46 """ A model to hold the details of registered users. |
41 """ |
47 """ |
42 |
48 |
43 first_name = models.CharField(max_length=30) |
49 first_name = models.CharField(max_length=30) |
44 last_name = models.CharField(max_length=30) |
50 last_name = models.CharField(max_length=30) |
45 email = models.EmailField() |
51 email = models.EmailField() |
46 gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
52 gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
|
53 t_shirt_size = models.CharField(max_length=2, choices=T_SHIRT_CHOICES, verbose_name="T-Shirt size") |
47 |
54 |
48 profession = models.CharField(max_length=20) |
55 profession = models.CharField(max_length=20) |
49 affiliated_to = models.CharField(max_length=30, verbose_name="Affiliated Institution/Company") |
56 affiliated_to = models.CharField(max_length=30, verbose_name="Affiliated Institution/Company") |
50 |
57 |
51 topics_interested = models.CharField(max_length=30, blank=True) |
58 topics_interested = models.CharField(max_length=30, blank=True) |