Order team members by name
This commit is contained in:
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…
Reference in New Issue