From 3d217db98dd2cc9af83bcd192113fd8eec49f023 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 13 May 2023 23:59:03 +0200 Subject: [PATCH] Sort team members by name --- shiftregister/fallback/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shiftregister/fallback/admin.py b/shiftregister/fallback/admin.py index eac40b9..0dedbab 100644 --- a/shiftregister/fallback/admin.py +++ b/shiftregister/fallback/admin.py @@ -32,6 +32,7 @@ class TeamMemberAdmin(admin.ModelAdmin): fields = ("id", "name", "url") readonly_fields = ("id", "url") list_display = ("name", "shift_count") + ordering = ("name",) inlines = (FallbackAssignmentInline,) actions = (assign_random_shifts, clear_shifts) # , reshuffle_shifts)