mirror of https://github.com/snachodog/mybuddy.git
modify pumping admin to reflect start/end/duration
This commit is contained in:
parent
1391819548
commit
b25d27c40e
|
@ -66,9 +66,11 @@ class PumpingImportExportResource(ImportExportResourceBase):
|
||||||
@admin.register(models.Pumping)
|
@admin.register(models.Pumping)
|
||||||
class PumpingAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
|
class PumpingAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
|
||||||
list_display = (
|
list_display = (
|
||||||
|
"start",
|
||||||
|
"end",
|
||||||
|
"duration",
|
||||||
"child",
|
"child",
|
||||||
"amount",
|
"amount",
|
||||||
"time",
|
|
||||||
)
|
)
|
||||||
list_filter = ("child",)
|
list_filter = ("child",)
|
||||||
search_fields = (
|
search_fields = (
|
||||||
|
@ -102,7 +104,15 @@ class FeedingImportExportResource(ImportExportResourceBase):
|
||||||
|
|
||||||
@admin.register(models.Feeding)
|
@admin.register(models.Feeding)
|
||||||
class FeedingAdmin(ImportExportMixin, ExportActionMixin, admin.ModelAdmin):
|
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 = (
|
list_filter = (
|
||||||
"child",
|
"child",
|
||||||
"type",
|
"type",
|
||||||
|
|
Loading…
Reference in New Issue