summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index c0317d9..0b24bcf 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1324,12 +1324,12 @@ def _remove_already_present(questionpaper_id, questions):
return questions
-def _get_questions_from_tags(question_tags, user):
+def _get_questions_from_tags(question_tags, user, active=True):
search_tags = []
for tags in question_tags:
search_tags.extend(re.split('[; |, |\*|\n]', tags))
return Question.objects.filter(tags__name__in=search_tags,
- user=user).distinct()
+ user=user, active=active).distinct()
@login_required