Skip to content

Commit fc643dd

Browse files
authored
Fix profile issue in Filter tag
1 parent fe3989f commit fc643dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

website/forum/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ def filter_question(request ,id):
647647
if request.is_ajax():
648648
return HttpResponse('')
649649
questions_list = paginator.page(paginator.num_pages)
650+
profiles = Profile.objects.all()
650651
args = {'form_search':search, 'profile': profiles, 'questions':questions_list, 'answers':answers, 'follows':follows, 'tags':tags_recent, 'taggings':taggings_recent, 'tags_recent':tags_recent_record, 'tags_popular':tags_popular_record, 'q_count':q_count}
651652
if request.is_ajax():
652653
return render(request, 'list.html', args)
@@ -870,4 +871,4 @@ def search_question(request, key):
870871
'tags_popular': tags_popular_record, 'q_count': q_count}
871872
if request.is_ajax():
872873
return render(request, 'list.html', args)
873-
return render(request, 'questions.html', args)
874+
return render(request, 'questions.html', args)

0 commit comments

Comments
 (0)