Commit ccbb5f2a authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch '246-member-sorting' into 'master'

Users on members page are now sorted nicely

Descending sort by starting year, then ascending sort by first name.

Closes #246

See merge request !277
parents 3101931f 09c955d0
......@@ -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)
......
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