summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2020-01-29 14:41:52 +0530
committerGitHub2020-01-29 14:41:52 +0530
commita76594e4b78599790a01d059f7a7380185e340a3 (patch)
tree1209b467c9fd56ff768823d10e453896efa1a822
parentce988b1bec26b4a15bf3705c53a2525b0ef104e2 (diff)
parentd67f271d5e1b8eb3fc45a8a2e8762d054fffc02f (diff)
downloadonline_test-a76594e4b78599790a01d059f7a7380185e340a3.tar.gz
online_test-a76594e4b78599790a01d059f7a7380185e340a3.tar.bz2
online_test-a76594e4b78599790a01d059f7a7380185e340a3.zip
Merge pull request #642 from manojvaghela/deleted_question
deleted question now does not reflect in search
-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