mirror of https://github.com/snachodog/mybuddy.git
Update admin fields for core Timer model
This commit is contained in:
parent
8421b14088
commit
8c28e8941e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue