From 0929244e446f13aa7de40910e6d8d158ae6786bd Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 23 Jul 2019 12:00:17 +0530 Subject: Fix course filter query to display only non trial courses on the dashboard --- yaksh/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/views.py') diff --git a/yaksh/views.py b/yaksh/views.py index 017d1ca..8d179b4 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -165,7 +165,7 @@ def quizlist_user(request, enrolled=None, msg=None): title = 'Search' elif enrolled is not None: - courses = user.students.all().order_by('-id') + courses = user.students.filter(is_trial=False).order_by('-id') title = 'Enrolled Courses' else: courses = Course.objects.filter( -- cgit