Skip to content

Commit 347448a

Browse files
committed
Add columns to admin
1 parent 48ed664 commit 347448a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

bakeup/shop/admin.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,22 @@ class CustomerAdmin(BaseAdmin):
3939

4040
@admin.register(ProductionDayProduct)
4141
class ProductionDayProductAdmin(BaseAdmin):
42-
list_display = ("production_day", "product", "max_quantity")
42+
list_display = (
43+
"production_day",
44+
"product",
45+
"max_quantity",
46+
"created",
47+
"updated",
48+
)
4349

4450

4551
@admin.register(ProductionDay)
4652
class ProductionDayAdmin(BaseAdmin):
47-
list_display = ("day_of_sale",)
53+
list_display = (
54+
"day_of_sale",
55+
"created",
56+
"updated",
57+
)
4858

4959

5060
@admin.register(ProductionDayTemplate)
@@ -66,6 +76,7 @@ class CustomerOrderAdmin(BaseAdmin):
6676
"point_of_sale",
6777
"address",
6878
"created",
79+
"updated",
6980
)
7081
inlines = (CustomerOrderPositionAdmin,)
7182
search_fields = (

0 commit comments

Comments
 (0)