summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 8e5562b..c27f31c 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -297,7 +297,9 @@ class CourseManager(models.Manager):
return trial_course
def get_hidden_courses(self, code):
- return self.filter(code=code, hidden=True)
+ return self.filter(
+ code=code, hidden=True, active=True
+ ).order_by('start_enroll_time')
#############################################################################