diff options
author | Akshen | 2017-11-04 13:35:36 +0530 |
---|---|---|
committer | Akshen | 2017-11-04 13:35:36 +0530 |
commit | 9aeaf153851c7821336ab542b4fd8f4e621a8d65 (patch) | |
tree | 6c68abafb707160e01ead56a56d9dd6dea137c3e /yaksh/views.py | |
parent | 8aa26daa4707bb6884f1132925866f9afc164375 (diff) | |
download | online_test-9aeaf153851c7821336ab542b4fd8f4e621a8d65.tar.gz online_test-9aeaf153851c7821336ab542b4fd8f4e621a8d65.tar.bz2 online_test-9aeaf153851c7821336ab542b4fd8f4e621a8d65.zip |
Show Active Course on top of Courses Page
Diffstat (limited to 'yaksh/views.py')
-rw-r--r-- | yaksh/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 47d8c9f..0d6acfe 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -793,9 +793,9 @@ def courses(request): if not is_moderator(user): raise Http404('You are not allowed to view this page') courses = Course.objects.filter( - creator=user, is_trial=False).order_by('-id') + creator=user, is_trial=False).order_by('-active') allotted_courses = Course.objects.filter( - teachers=user, is_trial=False).order_by('-id') + teachers=user, is_trial=False).order_by('-active') context = {'courses': courses, "allotted_courses": allotted_courses} return my_render_to_response('yaksh/courses.html', context, context_instance=ci) |