diff options
author | prathamesh | 2015-02-24 11:21:48 +0530 |
---|---|---|
committer | prathamesh | 2015-02-24 11:21:48 +0530 |
commit | ff5fc201bf7f44a6dc9d6d93fee7bc0ce47d1be2 (patch) | |
tree | 1dc6d79aee00d637b13a19aadb4e1a0f0b1379fd /testapp/exam/models.py | |
parent | 671df0da02345710ebd4b18d45f2a573de350cc3 (diff) | |
download | online_test-ff5fc201bf7f44a6dc9d6d93fee7bc0ce47d1be2.tar.gz online_test-ff5fc201bf7f44a6dc9d6d93fee7bc0ce47d1be2.tar.bz2 online_test-ff5fc201bf7f44a6dc9d6d93fee7bc0ce47d1be2.zip |
On skip the answer will be saved.
The user answer will be retrieved when the same question is loaded again
later.
Diffstat (limited to 'testapp/exam/models.py')
-rw-r--r-- | testapp/exam/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testapp/exam/models.py b/testapp/exam/models.py index 88ba9ef..0ad6021 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -105,6 +105,9 @@ class Answer(models.Model): # Is the answer correct. correct = models.BooleanField(default=False) + # Whether skipped or not. + skipped = models.BooleanField(default=False) + def __unicode__(self): return self.answer |