summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
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)