diff options
author | ankitjavalkar | 2020-10-07 12:12:25 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-10-07 12:12:25 +0530 |
commit | 0fd6c937ec19f9ce145c15ce6d968ec6e889583b (patch) | |
tree | d577542bf380403462862bb418b2583302af0cfd /yaksh | |
parent | 0e04d98e66b53763926af8027cbd275d890bfab4 (diff) | |
download | online_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.py | 4 |
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) |