diff options
author | mahesh | 2017-06-14 12:45:02 +0530 |
---|---|---|
committer | mahesh | 2017-06-14 12:45:07 +0530 |
commit | f308f6e4ffb3fefc42552570fd8cf852d643cd6f (patch) | |
tree | ca657b3ce51c787f43b496606d9b0bb8711a73b5 | |
parent | 3d43d3d423f6589688ba313ca961360280157543 (diff) | |
download | online_test-f308f6e4ffb3fefc42552570fd8cf852d643cd6f.tar.gz online_test-f308f6e4ffb3fefc42552570fd8cf852d643cd6f.tar.bz2 online_test-f308f6e4ffb3fefc42552570fd8cf852d643cd6f.zip |
removes Question queryset from tag searching
-rw-r--r-- | yaksh/views.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py index 42e92e0..cf2097b 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -1057,8 +1057,7 @@ def show_all_questions(request): questions = Question.objects.filter(user_id=user.id, active=True) form = QuestionFilterForm(user=user) - user_tags = Question.objects.filter(user=user)\ - .values_list('tags', flat=True).distinct() + user_tags = questions.values_list('tags', flat=True).distinct() all_tags = Tag.objects.filter(id__in = user_tags) upload_form = UploadFileForm() context['all_tags'] = all_tags |