Skip to content

Commit

Permalink
Add columns to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
bruecksen committed Nov 14, 2024
1 parent 48ed664 commit 347448a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions bakeup/shop/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -66,6 +76,7 @@ class CustomerOrderAdmin(BaseAdmin):
"point_of_sale",
"address",
"created",
"updated",
)
inlines = (CustomerOrderPositionAdmin,)
search_fields = (
Expand Down

0 comments on commit 347448a

Please sign in to comment.