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

Commit 781cec1e authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Sort member list always alphabetically

parent d8509d2e
......@@ -3,7 +3,7 @@ import json
from datetime import date, datetime
from django.contrib.auth.decorators import login_required, permission_required
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db.models import Q, F
from django.db.models import Q
from django.http import HttpResponse, Http404
from django.shortcuts import get_object_or_404, render
from django.template.response import TemplateResponse
......@@ -86,8 +86,7 @@ def filter_users(tab, keywords, year_range):
return (models.Member.objects
.filter(members_query)
.annotate()
.order_by(F('profile__starting_year').desc(nulls_last=True),
'first_name'))
.order_by('first_name'))
@login_required
......
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