diff options
author | CruiseDevice | 2022-03-30 17:36:11 +0530 |
---|---|---|
committer | CruiseDevice | 2022-03-30 17:36:11 +0530 |
commit | 92b9697b2f209b37b87ed62612d20b861a666be3 (patch) | |
tree | 688d3b1f9ac8bf07595be17a2d45cf4a5eab137c | |
parent | f5dc8f1e3271fcbd2e5b5d8d7e2e1e299c413acf (diff) | |
download | online_test-92b9697b2f209b37b87ed62612d20b861a666be3.tar.gz online_test-92b9697b2f209b37b87ed62612d20b861a666be3.tar.bz2 online_test-92b9697b2f209b37b87ed62612d20b861a666be3.zip |
show active course on search sorted by start_enroll_time
-rw-r--r-- | yaksh/models.py | 4 |
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') ############################################################################# |