diff options
-rw-r--r-- | requirements/requirements-common.txt | 2 | ||||
-rw-r--r-- | yaksh/views.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/requirements/requirements-common.txt b/requirements/requirements-common.txt index 319d5f6..913ef1f 100644 --- a/requirements/requirements-common.txt +++ b/requirements/requirements-common.txt @@ -1,6 +1,6 @@ -r requirements-codeserver.txt invoke==0.21.0 -django==1.11.18 +django==1.11.21 django-taggit==0.18.1 pytz==2016.4 requests-oauthlib>=0.6.1 diff --git a/yaksh/views.py b/yaksh/views.py index 5f0c41c..0bf91eb 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -161,11 +161,11 @@ def quizlist_user(request, enrolled=None, msg=None): if request.method == "POST": course_code = request.POST.get('course_code') hidden_courses = Course.objects.get_hidden_courses(code=course_code) - courses = hidden_courses if hidden_courses else None + courses = hidden_courses 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( |