Order team members by name

pull/1/head
Luca 2 years ago
parent 3eeb853f40
commit bf790d4073

@ -38,7 +38,9 @@ def team_members(request):
f"{member.name} {member.url()}"
for member in TeamMember.objects.annotate(
shift_count=Count("fallback_shifts")
).filter(fallback_shifts__gt=0)
)
.filter(fallback_shifts__gt=0)
.order_by("name")
)
)
response.headers["Content-Type"] = "text/plain; charset=utf-8"

Loading…
Cancel
Save