diff --git a/fet2020/posts/views.py b/fet2020/posts/views.py index a57dc68e..4c65f118 100644 --- a/fet2020/posts/views.py +++ b/fet2020/posts/views.py @@ -48,8 +48,16 @@ def tags(request, tag=""): (job_names[idx], active_members[idx], tag + "#" + slug_list[idx]) ) + author_image = None + if featured_post: + post_author = Member.all_members.filter(nickname=featured_post.author).first() + + if post_author: + author_image = post_author.image['avatar'].url + context = { "posts": posts, + "author_image": author_image, "featured_post": featured_post, "members": members, "tags_list": None, diff --git a/fet2020/templates/posts/tag.html b/fet2020/templates/posts/tag.html index d3a4d828..7c773635 100644 --- a/fet2020/templates/posts/tag.html +++ b/fet2020/templates/posts/tag.html @@ -16,7 +16,7 @@ {{post.subtitle | tags_to_url }} {% if post.author_member != None %}
{% else %}