feedback/models.py
changeset 53 0a4b2c49f718
parent 12 f57b0a7f24d9
child 55 53ff84c9192d
equal deleted inserted replaced
52:0cd75815847d 53:0a4b2c49f718
    41 
    41 
    42 class Feedback(models.Model):
    42 class Feedback(models.Model):
    43     """ A table to hold the feedbacks.
    43     """ A table to hold the feedbacks.
    44     """
    44     """
    45 
    45 
    46     user_ip = models.CharField(max_length=15)
       
    47     event = models.ForeignKey(Event, related_name="%(class)s")
    46     event = models.ForeignKey(Event, related_name="%(class)s")
    48     day = models.CharField(max_length=1, default='1')
    47     day = models.CharField(max_length=1, default='1')
    49 
    48 
    50     topics = models.CharField(max_length=1, choices=TOPICS_CHOICES,
    49     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)