From fa2b1f4ce04ed320afd276cd6702e294f26c3eff Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 26 May 2023 21:51:21 +0200 Subject: [PATCH] Order feedback submissions by helper name --- shiftregister/feedback/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shiftregister/feedback/admin.py b/shiftregister/feedback/admin.py index 18061b5..b35200a 100644 --- a/shiftregister/feedback/admin.py +++ b/shiftregister/feedback/admin.py @@ -8,6 +8,7 @@ class FeedbackAdmin(admin.ModelAdmin): list_display = ("helper", "party", "next_year", "feedback_len") readonly_fields = ("feedback_len",) list_filter = ("party", "next_year") + ordering = ("helper__name",) def feedback_len(self, obj): return len(obj.feedback_text)