From b8fdd84069b9042694861012945f7783e9e6dfc6 Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Fri, 9 Mar 2012 10:07:50 +0530 Subject: DEFAULT Exam removed from Options --- allotter/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'allotter/models.py') diff --git a/allotter/models.py b/allotter/models.py index 773d9d1..5b35771 100644 --- a/allotter/models.py +++ b/allotter/models.py @@ -19,11 +19,13 @@ CATEGORIES = ( AVAILABLE_OPTIONS = ( ("MScChem", "M.Sc Chemisty"), ("MScPhy", "M.Sc Physics"), - ("MScMath","M.Sc Mathematics")) + ("MScMath","M.Sc Mathematics"), + ("MscHist", "M.Sc History"), +) GENDER_CHOICES = ( ("M", "Male"), - ("F", "Female")) + ("F", "Female"),) APPLICATION_STATUS = ( ("I", "Incomplete"), @@ -58,7 +60,7 @@ class Option(models.Model): seats = models.IntegerField(verbose_name=u"Seats available") - exam = models.ManyToManyField(Exam, default=DEFAULT_EXAM_ID) + exam = models.ManyToManyField(Exam) class Meta: verbose_name_plural = "Options" -- cgit