Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
6513ef7a
Unverified
Commit
6513ef7a
authored
Jan 20, 2017
by
Joost Rijneveld
Browse files
Sort committee members by join date
parent
7f809674
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/views.py
View file @
6513ef7a
...
...
@@ -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
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment