Skip to content

Commit fb583c5

Browse files
committed
Fixes: Picture Not Displayed After Filter + Added By Link Made Functional On Forum
1 parent d9e675c commit fb583c5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

website/forum/templates/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323
<div id="addedBy" class="text-muted">
2424
{% if question.anonymous_ask == False %}
25-
<li>Added by {{question.user_id}} on</li>
25+
<li>Added by <a href="{% url 'user_profile:view_profile' question.user_id.id %}">{{question.user_id}}</a> on</li>
2626
{% else %}
2727
<li>Added by Anonymous on</li>
2828
{% endif %}

website/forum/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ def filter_question(request ,id):
624624
if request.is_ajax():
625625
return HttpResponse('')
626626
questions_list = paginator.page(paginator.num_pages)
627-
args = {'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}
627+
profiles = Profile.objects.all()
628+
args = {'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}
628629
if request.is_ajax():
629630
return render(request, 'list.html', args)
630631
return render(request, 'questions.html', args)

0 commit comments

Comments
 (0)