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

from django.db import models


QUIZ_CHOICES = (("11", "Day 1 Quiz 1"),
                ("12", "Day 1 Quiz 2"),
                ("21", "Day 2 Quiz 1"),
               )

class Event(models.Model):
    """ An event.
    """

    title = models.CharField(max_length=200)
    start_date = models.DateField()
    stop_date = models.DateField()
    feedback_status = models.CharField(max_length=1, default='0')
    quiz_status = models.CharField(max_length=2, default='00', choices=QUIZ_CHOICES)