summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorankitjavalkar2020-10-07 12:12:25 +0530
committerankitjavalkar2020-10-07 12:12:25 +0530
commit0fd6c937ec19f9ce145c15ce6d968ec6e889583b (patch)
treed577542bf380403462862bb418b2583302af0cfd /yaksh
parent0e04d98e66b53763926af8027cbd275d890bfab4 (diff)
downloadonline_test-0fd6c937ec19f9ce145c15ce6d968ec6e889583b.tar.gz
online_test-0fd6c937ec19f9ce145c15ce6d968ec6e889583b.tar.bz2
online_test-0fd6c937ec19f9ce145c15ce6d968ec6e889583b.zip
Set prereqs to False by default
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 3fa4a04..b172e79 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -637,7 +637,7 @@ class LearningUnit(models.Model):
on_delete=models.CASCADE)
quiz = models.ForeignKey(Quiz, null=True, blank=True,
on_delete=models.CASCADE)
- check_prerequisite = models.BooleanField(default=True)
+ check_prerequisite = models.BooleanField(default=False)
def get_lesson_or_quiz(self):
unit = None
@@ -716,7 +716,7 @@ class LearningModule(models.Model):
order = models.IntegerField(default=0)
creator = models.ForeignKey(User, related_name="module_creator",
on_delete=models.CASCADE)
- check_prerequisite = models.BooleanField(default=True)
+ check_prerequisite = models.BooleanField(default=False)
check_prerequisite_passes = models.BooleanField(default=False)
html_data = models.TextField(null=True, blank=True)
active = models.BooleanField(default=True)