summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authoradityacp2018-02-09 14:56:02 +0530
committeradityacp2018-02-15 14:52:19 +0530
commit617d09ca9b05185d9a2310c106360091ed8a1b1a (patch)
tree81a679abd29cbe8b9c5cafd447597a0e116014b3 /yaksh/models.py
parent93c4469db46ca0df19dbcf33eb7e8f6fad4f5b7b (diff)
downloadonline_test-617d09ca9b05185d9a2310c106360091ed8a1b1a.tar.gz
online_test-617d09ca9b05185d9a2310c106360091ed8a1b1a.tar.bz2
online_test-617d09ca9b05185d9a2310c106360091ed8a1b1a.zip
Change in models, test_models and views
- Change learning module test to remove units from course status after successful test run - Remove unnecessary comments from views - Remove unnecessary condition from module get_status method
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py3
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"