summaryrefslogtreecommitdiff
path: root/exam/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-19 16:08:05 +0530
committerPrabhu Ramachandran2011-11-19 16:08:05 +0530
commite263244c70e8c5db0bc89bfee84ce37fe8e40d16 (patch)
treebd0c511e9f1950ecce899033278430527a4a276f /exam/models.py
parentdb74ad784752eea326982c4e84faf9ec3768e006 (diff)
downloadonline_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.tar.gz
online_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.tar.bz2
online_test-e263244c70e8c5db0bc89bfee84ce37fe8e40d16.zip
Changed load_questions to load_exam
Added option to define quizzes in the file we load from. Also fixed bug in import for the xmlrpc_clients.py and changed the verbose name for Quiz objects.
Diffstat (limited to 'exam/models.py')
-rw-r--r--exam/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/exam/models.py b/exam/models.py
index ea60f17..8fe803d 100644
--- a/exam/models.py
+++ b/exam/models.py
@@ -62,6 +62,9 @@ class Quiz(models.Model):
# Description of quiz.
description = models.CharField(max_length=256)
+ class Meta:
+ verbose_name_plural = "Quizzes"
+
def __unicode__(self):
desc = self.description or 'Quiz'
return '%s: on %s for %d minutes'%(desc, self.start_date, self.duration)