feedback/models.py
changeset 1 18dc0362f550
parent 0 30a0f9e20fd4
child 2 c11afa8623f7
--- a/feedback/models.py	Thu Apr 08 16:18:05 2010 +0530
+++ b/feedback/models.py	Thu Apr 08 16:35:46 2010 +0530
@@ -3,7 +3,44 @@
 
 from workshop.reg.models import Event
 
-class FeedBack(models.Model):
+TOPICS_CHOICES = (('1', 'Very relevant'),
+                  ('2', 'Relevant'),
+                  ('3', 'Somewhat relevant'),
+                  ('4', 'Not relevant'))
+
+DEPTH_CHOICES = (('1', 'Too detailed'),
+                 ('2', 'Detailed'),
+                 ('3', 'Not enough detail'),
+                 ('4', 'Poor detail'))
+
+METHODOLOGY_CHOICES = (('1', 'Extremely effective'),
+                       ('2', 'Effective'),
+                       ('3', 'Not very effective'),
+                       ('4', 'Ineffective'))
+
+PACE_CHOICES = (('1', 'Too fast'),
+                ('2', 'Fast'),
+                ('3', 'Just right'),
+                ('4', 'Slow'),
+                ('5', 'Too slow'))
+
+APPLICABILITY_CHOICES = (('1', 'I can use most of it immediately'),
+                         ('2', 'I can use it somewhat immediately'),
+                         ('3', 'I cannot use it immediately'),
+                         ('4', 'I might never use it'))
+
+PROBLEMS_CHOICES = (('1', 'Very intersting'),
+                    ('2', 'Interesting'),
+                    ('3', 'Somewhat interesting'),
+                    ('4', 'Not interesting'))
+
+EXERCISES_CHOICES = (('1', 'Very instructive'),
+                     ('2', 'Instructive'),
+                     ('3', 'Somewhat instructive'),
+                     ('4', 'Not instructive'))
+
+
+class Feedback(models.Model):
     """ A table to hold the feedbacks.
     """
 
@@ -16,8 +53,7 @@
     effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True)
     pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True)
     applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True)
-    choice_of_problems = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
-    chocice_of_exercises = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
+    choice_of_problems = models.CharField(max_length=1, choices=PROBLEMS_CHOICES, blank=True)
+    chocice_of_exercises = models.CharField(max_length=1, choices=EXERCISES_CHOICES, blank=True)
     comments = models.TextField(verbose_name="General comments", blank=True)
 
-    is_filled = models.BooleanField(default=True)