From 347448adc6d7616e5348eac6d7205b088dff41ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Br=C3=BCck?= Date: Thu, 14 Nov 2024 14:27:35 +0100 Subject: [PATCH] Add columns to admin --- bakeup/shop/admin.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bakeup/shop/admin.py b/bakeup/shop/admin.py index 65f7982..b8400a6 100644 --- a/bakeup/shop/admin.py +++ b/bakeup/shop/admin.py @@ -39,12 +39,22 @@ class CustomerAdmin(BaseAdmin): @admin.register(ProductionDayProduct) class ProductionDayProductAdmin(BaseAdmin): - list_display = ("production_day", "product", "max_quantity") + list_display = ( + "production_day", + "product", + "max_quantity", + "created", + "updated", + ) @admin.register(ProductionDay) class ProductionDayAdmin(BaseAdmin): - list_display = ("day_of_sale",) + list_display = ( + "day_of_sale", + "created", + "updated", + ) @admin.register(ProductionDayTemplate) @@ -66,6 +76,7 @@ class CustomerOrderAdmin(BaseAdmin): "point_of_sale", "address", "created", + "updated", ) inlines = (CustomerOrderPositionAdmin,) search_fields = (