Verified Commit 85c36279 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix committee membership role on detail page

parent dc43cab9
......@@ -56,13 +56,13 @@
{% blocktrans with since=member.committee_since|date:"Y" %}Committee member since: {{ since }}{% endblocktrans %}
{% endif %}
</p>
{% if member.role %}
<p>{{ member.role }}</p>
{% endif %}
</div>
</div>
<div class="post-body avatar-subtitle">
{{ member.profile.display_name }}
{% if member.role %}
<p>{{ member.role }}</p>
{% endif %}
</div>
</div>
</a>
......
......@@ -27,6 +27,7 @@ def committee_detail(request, id):
for membership in memberships:
member = membership.member
member.chair = membership.chair
member.role = membership.role
member.committee_since = membership.initial_connected_membership.since
members.append(member) # list comprehension would be more pythonic?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment