37 EXERCISES_CHOICES = (('1', 'Very instructive'), |
37 EXERCISES_CHOICES = (('1', 'Very instructive'), |
38 ('2', 'Instructive'), |
38 ('2', 'Instructive'), |
39 ('3', 'Somewhat instructive'), |
39 ('3', 'Somewhat instructive'), |
40 ('4', 'Not instructive')) |
40 ('4', 'Not instructive')) |
41 |
41 |
42 |
|
43 class Feedback(models.Model): |
42 class Feedback(models.Model): |
44 """ A table to hold the feedbacks. |
43 """ A table to hold the feedbacks. |
45 """ |
44 """ |
46 |
45 |
47 user = models.ForeignKey(User) |
46 user_ip = models.CharField(max_length=15) |
48 event = models.ForeignKey(Event) |
47 event = models.ForeignKey(Event) |
49 |
48 |
50 range_of_topics = models.CharField(max_length=1, choices=TOPICS_CHOICES, |
49 range_of_topics = models.CharField(max_length=1, choices=TOPICS_CHOICES, |
51 verbose_name="Range of topics covered", blank=True) |
50 verbose_name="Range of topics covered", blank=True) |
52 depth_of_coverage = models.CharField(max_length=1, choices=DEPTH_CHOICES, blank=True) |
51 depth_of_coverage = models.CharField(max_length=1, choices=DEPTH_CHOICES, blank=True) |