summaryrefslogtreecommitdiff
path: root/exam/models.py
diff options
context:
space:
mode:
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)