2
0
Fork 0

Order feedback submissions by helper name

This commit is contained in:
Luca 2023-05-26 21:51:21 +02:00
parent ab9fbb48da
commit fa2b1f4ce0
1 changed files with 1 additions and 0 deletions

View File

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