equal
deleted
inserted
replaced
10 |
10 |
11 |
11 |
12 class Profile(models.Model): |
12 class Profile(models.Model): |
13 """ A model to hold extra information about the user. |
13 """ A model to hold extra information about the user. |
14 """ |
14 """ |
15 |
|
16 key = models.CharField(max_length=10, unique=True) |
|
17 |
15 |
18 user = models.ForeignKey(User, unique=True) |
16 user = models.ForeignKey(User, unique=True) |
19 gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
17 gender = models.CharField(max_length=1, choices=GENDER_CHOICES) |
20 profession = models.CharField(max_length=1, choices=PROFESSION_CHOICES) |
18 profession = models.CharField(max_length=1, choices=PROFESSION_CHOICES) |
21 affiliated_to = models.CharField(max_length=100, verbose_name="College/Company") |
19 affiliated_to = models.CharField(max_length=100, verbose_name="College/Company") |
37 attendees = models.ManyToManyField(User, related_name="%(class)s_attendees") |
35 attendees = models.ManyToManyField(User, related_name="%(class)s_attendees") |
38 organizers = models.ManyToManyField(User, related_name="%(class)s_organizers") |
36 organizers = models.ManyToManyField(User, related_name="%(class)s_organizers") |
39 |
37 |
40 feedback_open = models.BooleanField() |
38 feedback_open = models.BooleanField() |
41 quiz_open = models.BooleanField() |
39 quiz_open = models.BooleanField() |
|
40 |
|
41 def __unicode__(self): |
|
42 |
|
43 return self.title |