diff options
author | Nishanth Amuluru | 2011-11-10 20:25:03 +0530 |
---|---|---|
committer | Nishanth Amuluru | 2011-11-10 20:50:26 +0530 |
commit | 5b2d3d506e277d57bae9a8b90dd348225347d486 (patch) | |
tree | b4fb4fcff86354c3f2f4e092275e1de4a72fcbda /exam/models.py | |
parent | aeb50765bdcb5e94bcd07d22f2cfa8f692e13911 (diff) | |
download | online_test-5b2d3d506e277d57bae9a8b90dd348225347d486.tar.gz online_test-5b2d3d506e277d57bae9a8b90dd348225347d486.tar.bz2 online_test-5b2d3d506e277d57bae9a8b90dd348225347d486.zip |
Now the users cannot retake the test once they logout.
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 226146a..61de093 100644 --- a/exam/models.py +++ b/exam/models.py @@ -51,6 +51,9 @@ class Quiz(models.Model): 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 + is_active = models.BooleanField(default = True) # The questions (a list of ids separated by '|') questions = models.CharField(max_length=128) |