summaryrefslogtreecommitdiff
path: root/exam/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-10 08:59:09 -0800
committerPrabhu Ramachandran2011-11-10 08:59:09 -0800
commitc69bc272c1c3ba02c3f244586b65254036e73de3 (patch)
tree23b1cb67582a49d93523aaa7ad3a1bbf81dacb02 /exam/models.py
parent30f005126c97121548cc1d453997933482bd33a8 (diff)
parentf569c1f1cea65f744f42941b5d7e75b49350d442 (diff)
downloadonline_test-c69bc272c1c3ba02c3f244586b65254036e73de3.tar.gz
online_test-c69bc272c1c3ba02c3f244586b65254036e73de3.tar.bz2
online_test-c69bc272c1c3ba02c3f244586b65254036e73de3.zip
Merge pull request #1 from nishi2rock/master
Implemented the user register and login feature
Diffstat (limited to 'exam/models.py')
-rw-r--r--exam/models.py3
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)