feedback/models.py
changeset 55 53ff84c9192d
parent 53 0a4b2c49f718
child 62 b7e47cc39342
equal deleted inserted replaced
54:345d4413b85c 55:53ff84c9192d
    62     comments = models.TextField(verbose_name="General comments", blank=True)
    62     comments = models.TextField(verbose_name="General comments", blank=True)
    63 
    63 
    64     def __unicode__(self):
    64     def __unicode__(self):
    65         
    65         
    66         return unicode(self.event.title)
    66         return unicode(self.event.title)
       
    67 
       
    68 class FeedLog(models.Model):
       
    69     """ A model to store the days for which a user had submitted feedback.
       
    70     """
       
    71 
       
    72     event = models.ForeignKey(Event)
       
    73     user = models.ForeignKey(User)
       
    74     day = models.CharField(max_length=1)