summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2020-10-07 13:47:13 +0530
committerGitHub2020-10-07 13:47:13 +0530
commit0352fb8753745c1ba33bb51602bee4b756c6c206 (patch)
treee67592c00ceca90f6bd4090c77cedd5072e50f6a /yaksh/models.py
parent0e04d98e66b53763926af8027cbd275d890bfab4 (diff)
parent08571d9a80f2c327ee42bd19a625e04a5a7a4630 (diff)
downloadonline_test-0352fb8753745c1ba33bb51602bee4b756c6c206.tar.gz
online_test-0352fb8753745c1ba33bb51602bee4b756c6c206.tar.bz2
online_test-0352fb8753745c1ba33bb51602bee4b756c6c206.zip
Merge pull request #775 from ankitjavalkar/def-false-prereq
Set prereqs to False by default
Diffstat (limited to 'yaksh/models.py')
-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)