2
0
Fork 0

Order team members by name

This commit is contained in:
Luca 2023-05-17 17:46:04 +02:00
parent 3eeb853f40
commit bf790d4073
1 changed files with 3 additions and 1 deletions

View File

@ -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"