From 4df025426ea5de6c57eaa9560bb603741e5b4800 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Wed, 4 Nov 2026 21:54:11 +0100 Subject: [PATCH] add product filter options to admin page --- bbs/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bbs/admin.py b/bbs/admin.py index b87ef6f..93c0bca 100644 --- a/bbs/admin.py +++ b/bbs/admin.py @@ -12,7 +12,8 @@ from bbs.models import ( @admin.register(Product) class ProductAdmin(admin.ModelAdmin): - pass + list_display = ["name", "active", "inventory_amount"] + list_filter = ["active"] admin.site.register(InventoryTransaction)