diff options
author | Prabhu Ramachandran | 2011-11-17 02:15:33 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-17 02:15:33 +0530 |
commit | e2b3d315c3cd3eab79ad74224436b681cbf84371 (patch) | |
tree | 85daad94f7ffef98a649579a6e26083daf274f56 /exam/models.py | |
parent | ccc597e122e35070e4bfdac396b6171ef2cbd354 (diff) | |
download | online_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.tar.gz online_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.tar.bz2 online_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.zip |
ENH: Changing Quiz to QuestionPaper.
This changes the models. The Quiz should really be QuestionPaper and a
Quiz should be like an event that the admin creates to start a quiz and
each QuestionPaper should be related to a Quiz. This will be added
later.
Diffstat (limited to 'exam/models.py')
-rw-r--r-- | exam/models.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/exam/models.py b/exam/models.py index 61de093..1e8ba69 100644 --- a/exam/models.py +++ b/exam/models.py @@ -42,17 +42,17 @@ class Answer(models.Model): return self.answer -class Quiz(models.Model): - """A quiz for a student. +class QuestionPaper(models.Model): + """A question paper for a student -- one per student typically. """ - # The user taking this quiz. + # The user taking this question paper. user = models.ForeignKey(User) # User's IP which is logged. user_ip = models.CharField(max_length=15) # Unused currently. key = models.CharField(max_length=10) - # used to allow/stop a user from retaking the quiz + # used to allow/stop a user from retaking the question paper. is_active = models.BooleanField(default = True) # The questions (a list of ids separated by '|') @@ -111,4 +111,4 @@ class Quiz(models.Model): def __unicode__(self): u = self.user - return u'Quiz for {0} {1}'.format(u.first_name, u.last_name) + return u'Question paper for {0} {1}'.format(u.first_name, u.last_name) |