feedback/models.py
changeset 0 30a0f9e20fd4
child 1 18dc0362f550
equal deleted inserted replaced
-1:000000000000 0:30a0f9e20fd4
       
     1 from django.db import models
       
     2 from django.contrib.auth.models import User
       
     3 
       
     4 from workshop.reg.models import Event
       
     5 
       
     6 class FeedBack(models.Model):
       
     7     """ A table to hold the feedbacks.
       
     8     """
       
     9 
       
    10     user = models.ForeignKey(User)
       
    11     event = models.ForeignKey(Event)
       
    12 
       
    13     range_of_topics = models.CharField(max_length=1, choices=TOPICS_CHOICES,
       
    14                                        verbose_name="Range of topics covered", blank=True)
       
    15     depth_of_coverage = models.CharField(max_length=1, choices=DEPTH_CHOICES, blank=True)
       
    16     effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True)
       
    17     pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True)
       
    18     applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True)
       
    19     choice_of_problems = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
       
    20     chocice_of_exercises = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
       
    21     comments = models.TextField(verbose_name="General comments", blank=True)
       
    22 
       
    23     is_filled = models.BooleanField(default=True)