author | nishanth |
Thu, 22 Apr 2010 01:35:31 +0530 | |
changeset 42 | 007d87112911 |
parent 25 | 4143a8f90b00 |
permissions | -rw-r--r-- |
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 | 3 |
|
4 |
QUIZ_CHOICES = (("11", "Day 1 Quiz 1"), |
|
5 |
("12", "Day 1 Quiz 2"), |
|
6 |
("21", "Day 2 Quiz 1"), |
|
7 |
) |
|
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 | 17 |
quiz_status = models.CharField(max_length=2, default='00', verbose_name="Quiz Name", choices=QUIZ_CHOICES) |