diff --git a/shiftregister/feedback/admin.py b/shiftregister/feedback/admin.py index b35200a..856046d 100644 --- a/shiftregister/feedback/admin.py +++ b/shiftregister/feedback/admin.py @@ -6,7 +6,7 @@ from .models import Feedback @admin.register(Feedback) class FeedbackAdmin(admin.ModelAdmin): list_display = ("helper", "party", "next_year", "feedback_len") - readonly_fields = ("feedback_len",) + readonly_fields = ("helper", "party", "next_year", "feedback_text", "feedback_len") list_filter = ("party", "next_year") ordering = ("helper__name",) diff --git a/shiftregister/feedback/models.py b/shiftregister/feedback/models.py index a3af1a0..2e442d0 100644 --- a/shiftregister/feedback/models.py +++ b/shiftregister/feedback/models.py @@ -16,3 +16,6 @@ class Feedback(models.Model): ) next_year = models.BooleanField() feedback_text = models.TextField(blank=True, default="") + + def __str__(self): + return f"Feedback by {self.helper.name}"