summaryrefslogtreecommitdiff
path: root/allotter
diff options
context:
space:
mode:
authorPrimal Pappachan2012-02-20 10:31:00 +0530
committerPrimal Pappachan2012-02-20 10:31:00 +0530
commiteca126940208efd61576589f97700a9031a04050 (patch)
treed58025adc199f53c30a9f3388bdc51d240fa3707 /allotter
parent920b04b11c5910a4dd33beba56a6130341d180db (diff)
downloadaloha-eca126940208efd61576589f97700a9031a04050.tar.gz
aloha-eca126940208efd61576589f97700a9031a04050.tar.bz2
aloha-eca126940208efd61576589f97700a9031a04050.zip
added the profiler app and edited allotter models
Diffstat (limited to 'allotter')
-rw-r--r--allotter/models.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/allotter/models.py b/allotter/models.py
index 4b426e0..ddb1b2d 100644
--- a/allotter/models.py
+++ b/allotter/models.py
@@ -2,11 +2,12 @@ from django.db import models
from datetime import datetime
-class Options(models.Model):
+class Option(models.Model):
opt_name = models.CharField(max_length=100,
verbose_name=u"Option name",
help_text=u"Name of Option/Stream")
-
+ class Meta:
+ verbose_name_plural = "Options"
class Exam(models.Model):
exam_code = models.CharField(max_length=100,
@@ -15,7 +16,7 @@ class Exam(models.Model):
exam_name = models.CharField(max_length=100,
verbose_name=u"Examination name",
help_text=u"Subject name of the examination")
- option_available = models.ForeignKey("Options",
+ option_available = models.ForeignKey("Option",
default=1)
def __unicode__(self):