diff options
author | adityacp | 2021-02-08 11:28:18 +0530 |
---|---|---|
committer | adityacp | 2021-02-08 11:30:09 +0530 |
commit | 7cf71fe471553c7b0f92d96f3b2da48d06eaa43d (patch) | |
tree | d6966ca0ba1a12254163fda53a28a64b6adebfef /yaksh | |
parent | 1206e886588b3d7e8dfe5fb88a6891e85c5b73ee (diff) | |
download | online_test-7cf71fe471553c7b0f92d96f3b2da48d06eaa43d.tar.gz online_test-7cf71fe471553c7b0f92d96f3b2da48d06eaa43d.tar.bz2 online_test-7cf71fe471553c7b0f92d96f3b2da48d06eaa43d.zip |
Release changes
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/models.py | 2 | ||||
-rw-r--r-- | yaksh/templatetags/custom_filters.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 0f62948..b4d0f76 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1067,7 +1067,7 @@ class Course(models.Model): return students def get_learning_modules(self): - return self.learning_module.order_by("order") + return self.learning_module.filter(is_trial=False).order_by("order") def get_learning_module(self, quiz): modules = self.get_learning_modules() diff --git a/yaksh/templatetags/custom_filters.py b/yaksh/templatetags/custom_filters.py index b026159..78f321f 100644 --- a/yaksh/templatetags/custom_filters.py +++ b/yaksh/templatetags/custom_filters.py @@ -216,7 +216,7 @@ def get_lesson_views(course_id, lesson_id): @register.simple_tag def get_percent_value(dictionary, key, total): return round((dictionary.get(str(key), 0)/total)*100) - + @register.simple_tag def get_dict_value(dictionary, key): |