From b25d27c40e103088d74ce393c831fb2dee857b02 Mon Sep 17 00:00:00 2001 From: John Merlie Date: Fri, 16 Jun 2023 17:07:24 -0400 Subject: [PATCH] modify pumping admin to reflect start/end/duration --- core/admin.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/admin.py b/core/admin.py index 69550068..e082191a 100644 --- a/core/admin.py +++ b/core/admin.py @@ -66,9 +66,11 @@ class PumpingImportExportResource(ImportExportResourceBase): @admin.register(models.Pumping) class PumpingAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin): list_display = ( + "start", + "end", + "duration", "child", "amount", - "time", ) list_filter = ("child",) search_fields = ( @@ -102,7 +104,15 @@ class FeedingImportExportResource(ImportExportResourceBase): @admin.register(models.Feeding) class FeedingAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin): - list_display = ("start", "end", "duration", "child", "type", "method", "amount") + list_display = ( + "start", + "end", + "duration", + "child", + "type", + "method", + "amount", + ) list_filter = ( "child", "type",