diff options
author | ankitjavalkar | 2019-07-23 12:00:17 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-07-23 12:00:17 +0530 |
commit | 0929244e446f13aa7de40910e6d8d158ae6786bd (patch) | |
tree | 364da6771e8b1b0feb160795c060a50329bab16d /yaksh | |
parent | 572f0fcd855a1a602537311fb2db0a800ca5ad1b (diff) | |
download | online_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
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/views.py | 2 |
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( |