display feedback in admin backend
This commit is contained in:
parent
bdf90c2ba8
commit
ab9fbb48da
|
@ -1,3 +1,13 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
# Register your models here.
|
from .models import Feedback
|
||||||
|
|
||||||
|
|
||||||
|
@admin.register(Feedback)
|
||||||
|
class FeedbackAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ("helper", "party", "next_year", "feedback_len")
|
||||||
|
readonly_fields = ("feedback_len",)
|
||||||
|
list_filter = ("party", "next_year")
|
||||||
|
|
||||||
|
def feedback_len(self, obj):
|
||||||
|
return len(obj.feedback_text)
|
||||||
|
|
Loading…
Reference in New Issue