Unverified Commit 6513ef7a authored by Joost Rijneveld's avatar Joost Rijneveld
Browse files

Sort committee members by join date

parent 7f809674
......@@ -29,6 +29,8 @@ def committee_detail(request, id):
member.committee_since = membership.initial_connected_membership.since
members.append(member) # list comprehension would be more pythonic?
members.sort(key=lambda x: x.committee_since)
return render(request, 'activemembers/committee_detail.html',
{'committee': committee,
'members': members})
......
Supports Markdown
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