event/models.py
author nishanth
Thu, 22 Apr 2010 01:35:31 +0530
changeset 42 007d87112911
parent 25 4143a8f90b00
permissions -rw-r--r--
created a user_dump page that shows all the answers entered by user at one place
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
     1
from django.db import models
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
     2
23
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     3
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     4
QUIZ_CHOICES = (("11", "Day 1 Quiz 1"),
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     5
                ("12", "Day 1 Quiz 2"),
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     6
                ("21", "Day 2 Quiz 1"),
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     7
               )
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
     8
4
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
     9
class Event(models.Model):
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    10
    """ An event.
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    11
    """
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    12
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    13
    title = models.CharField(max_length=200)
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    14
    start_date = models.DateField()
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    15
    stop_date = models.DateField()
e3b8a3ae3857 added an app called event and created the event model.
nishanth
parents:
diff changeset
    16
    feedback_status = models.CharField(max_length=1, default='0')
25
4143a8f90b00 added open quiz functionality
nishanth
parents: 23
diff changeset
    17
    quiz_status = models.CharField(max_length=2, default='00', verbose_name="Quiz Name", choices=QUIZ_CHOICES)