From 754244da53f7e0a63c272ce6d1ffb15c1d5be0ae Mon Sep 17 00:00:00 2001 From: prathamesh Date: Mon, 8 Jul 2013 11:22:01 +0530 Subject: Added few questions. Made changes to fix minor bugs which were found during testing. --- testapp/exam/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testapp/exam/models.py') diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 2aa02c9..babde0f 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -67,7 +67,7 @@ class Answer(models.Model): question = models.ForeignKey(Question) # The answer submitted by the user. - answer = models.TextField() + answer = models.TextField(null=True, blank=True) # Error message when auto-checking the answer. error = models.TextField() @@ -120,7 +120,7 @@ class QuestionPaper(models.Model): ################################################################################ class AnswerPaper(models.Model): - """A question paper for a student -- one per student typically. + """A answer paper for a student -- one per student typically. """ # The user taking this question paper. user = models.ForeignKey(User) -- cgit