From 8c28e8941e46960580a56dedc51a5085dadc4d45 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Thu, 30 Jan 2020 16:24:30 -0800 Subject: [PATCH] Update admin fields for core Timer model --- core/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/admin.py b/core/admin.py index eeb61a9a..15723d45 100644 --- a/core/admin.py +++ b/core/admin.py @@ -54,9 +54,10 @@ class TemperatureAdmin(admin.ModelAdmin): @admin.register(models.Timer) class TimerAdmin(admin.ModelAdmin): - list_display = ('name', 'start', 'end', 'duration', 'active', 'user') - list_filter = ('active', 'user') - search_fields = ('name', 'user') + list_display = ('name', 'child', 'start', 'end', 'duration', 'active', + 'user') + list_filter = ('child', 'active', 'user') + search_fields = ('child__first_name', 'child__last_name', 'name', 'user') @admin.register(models.TummyTime)