feedback/models.py
author nishanth
Thu, 08 Apr 2010 16:18:05 +0530
changeset 0 30a0f9e20fd4
child 1 18dc0362f550
permissions -rw-r--r--
initial commit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     1
from django.db import models
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     2
from django.contrib.auth.models import User
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     3
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     4
from workshop.reg.models import Event
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     5
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     6
class FeedBack(models.Model):
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     7
    """ A table to hold the feedbacks.
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     8
    """
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
     9
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    10
    user = models.ForeignKey(User)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    11
    event = models.ForeignKey(Event)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    12
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    13
    range_of_topics = models.CharField(max_length=1, choices=TOPICS_CHOICES,
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    14
                                       verbose_name="Range of topics covered", blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    15
    depth_of_coverage = models.CharField(max_length=1, choices=DEPTH_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    16
    effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    17
    pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    18
    applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    19
    choice_of_problems = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    20
    chocice_of_exercises = models.CharField(max_length=1, choices=TOPICS_RANGE_CHOICES, blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    21
    comments = models.TextField(verbose_name="General comments", blank=True)
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    22
30a0f9e20fd4 initial commit
nishanth
parents:
diff changeset
    23
    is_filled = models.BooleanField(default=True)