Update admin fields for core Timer model

This commit is contained in:
Christopher C. Wells 2020-01-30 16:24:30 -08:00 committed by Christopher Charbonneau Wells
parent 8421b14088
commit 8c28e8941e
1 changed files with 4 additions and 3 deletions

View File

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