event/models.py
author nishanth
Wed, 30 Jun 2010 10:45:27 +0530
changeset 74 46c5ae6594df
parent 25 4143a8f90b00
permissions -rw-r--r--
cheching for admin key in opening and closing of quiz is now done via urls

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', verbose_name="Quiz Name", choices=QUIZ_CHOICES)