diff options
author | prathamesh | 2015-04-07 16:20:13 +0530 |
---|---|---|
committer | prathamesh | 2015-04-07 16:20:13 +0530 |
commit | 8fcc1ab1de747bea09b443ba591a684e3054f65b (patch) | |
tree | 375ac3b10f95caa79d19ee3ae9f09518e4b5be67 /testapp/exam/models.py | |
parent | bcfaf246852cb90a519aab3d0cea21599fd1fd55 (diff) | |
parent | 9b7df35eca1557982155fdcc7993b4a7ba77235b (diff) | |
download | online_test-8fcc1ab1de747bea09b443ba591a684e3054f65b.tar.gz online_test-8fcc1ab1de747bea09b443ba591a684e3054f65b.tar.bz2 online_test-8fcc1ab1de747bea09b443ba591a684e3054f65b.zip |
On skip or navigation, the user answer will be saved.
Added boolean field in Answer model to check whether the
answered is skipped or not.
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 ebf1018..72fb51b 100644 --- a/testapp/exam/models.py +++ b/testapp/exam/models.py @@ -106,6 +106,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 |