diff options
Diffstat (limited to 'yaksh')
-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 0d6acfe..e2412bb 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('-active') + creator=user, is_trial=False).order_by('-active', '-id') allotted_courses = Course.objects.filter( - teachers=user, is_trial=False).order_by('-active') + teachers=user, is_trial=False).order_by('-active', '-id') context = {'courses': courses, "allotted_courses": allotted_courses} return my_render_to_response('yaksh/courses.html', context, context_instance=ci) |