diff options
author | Prabhu Ramachandran | 2011-11-19 16:08:05 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-19 16:08:05 +0530 |
commit | e263244c70e8c5db0bc89bfee84ce37fe8e40d16 (patch) | |
tree | bd0c511e9f1950ecce899033278430527a4a276f /exam/models.py | |
parent | db74ad784752eea326982c4e84faf9ec3768e006 (diff) | |
download | online_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.py | 3 |
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) |