diff options
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 17ba624..fd4ae3f 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -456,8 +456,7 @@ class LearningModule(models.Model): "learning_unit").get(id=self.id) ordered_units = learning_module.learning_unit.order_by("order") status_list = [unit.get_completion_status(user, course) - for unit in ordered_units - if unit.has_prerequisite()] + for unit in ordered_units] if not status_list: default_status = "no units" |