|
|
@ -8,6 +8,7 @@ class FeedbackAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ("helper", "party", "next_year", "feedback_len")
|
|
|
|
list_display = ("helper", "party", "next_year", "feedback_len")
|
|
|
|
readonly_fields = ("feedback_len",)
|
|
|
|
readonly_fields = ("feedback_len",)
|
|
|
|
list_filter = ("party", "next_year")
|
|
|
|
list_filter = ("party", "next_year")
|
|
|
|
|
|
|
|
ordering = ("helper__name",)
|
|
|
|
|
|
|
|
|
|
|
|
def feedback_len(self, obj):
|
|
|
|
def feedback_len(self, obj):
|
|
|
|
return len(obj.feedback_text)
|
|
|
|
return len(obj.feedback_text)
|
|
|
|