modify pumping admin to reflect start/end/duration

This commit is contained in:
John Merlie 2023-06-16 17:07:24 -04:00 committed by Christopher Charbonneau Wells
parent 1391819548
commit b25d27c40e
1 changed files with 12 additions and 2 deletions

View File

@ -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",