feedback/models.py
changeset 5 37e4027fba48
parent 2 c11afa8623f7
child 10 c52d170969f0
equal deleted inserted replaced
4:ededea9ad08b 5:37e4027fba48
    51     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)
    52     effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True)
    52     effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True)
    53     pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True)
    53     pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True)
    54     applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True)
    54     applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True)
    55     choice_of_problems = models.CharField(max_length=1, choices=PROBLEMS_CHOICES, blank=True)
    55     choice_of_problems = models.CharField(max_length=1, choices=PROBLEMS_CHOICES, blank=True)
    56     chocice_of_exercises = models.CharField(max_length=1, choices=EXERCISES_CHOICES, blank=True)
    56     choice_of_exercises = models.CharField(max_length=1, choices=EXERCISES_CHOICES, blank=True)
    57     comments = models.TextField(verbose_name="General comments", blank=True)
    57     comments = models.TextField(verbose_name="General comments", blank=True)
    58 
    58 
       
    59     def __unicode__(self):
       
    60         
       
    61         return unicode(self.range_of_topics +
       
    62                        self.depth_of_coverage +
       
    63                        self.effectiveness_of_methodology +
       
    64                        self.pace_of_coverage +
       
    65                        self.applicability +
       
    66                        self.choice_of_problems +
       
    67                        self.choice_of_exercises
       
    68                       )