We planned to upgrade GitLab and Mattermost to the latest version this Friday morning. Expect some downtime!

Commit 09c955d0 authored by Tom van Bussel's avatar Tom van Bussel Committed by tvbussel

Users on members page are now sorted nicely

Descending sort by starting year, then ascending sort by first name.
parent 7ac166d4
......@@ -55,7 +55,8 @@ def index(request):
memberships = models.Membership.objects.filter(memberships_query)
members_query &= Q(user__in=memberships.values('user'))
members = models.Member.objects.filter(members_query)
members = models.Member.objects.filter(members_query).order_by(
'-starting_year', 'user__first_name')
paginator = Paginator(members, 24)
......
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