summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2019-07-23 12:00:17 +0530
committerankitjavalkar2019-07-23 12:00:17 +0530
commit0929244e446f13aa7de40910e6d8d158ae6786bd (patch)
tree364da6771e8b1b0feb160795c060a50329bab16d
parent572f0fcd855a1a602537311fb2db0a800ca5ad1b (diff)
downloadonline_test-0929244e446f13aa7de40910e6d8d158ae6786bd.tar.gz
online_test-0929244e446f13aa7de40910e6d8d158ae6786bd.tar.bz2
online_test-0929244e446f13aa7de40910e6d8d158ae6786bd.zip
Fix course filter query to display only non trial courses on the dashboard
-rw-r--r--yaksh/views.py2
1 files changed, 1 insertions, 1 deletions
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(