event/models.py
author nishanth
Tue, 20 Apr 2010 23:29:44 +0530
changeset 23 f57c30096b51
parent 4 e3b8a3ae3857
child 25 4143a8f90b00
permissions -rw-r--r--
added the link on home to attempt quiz
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')
23
f57c30096b51 added the link on home to attempt quiz
nishanth
parents: 4
diff changeset
    17
    quiz_status = models.CharField(max_length=2, default='00', choices=QUIZ_CHOICES)