From a6f608e8ccf9abaf332ce78f152f4b26c037d491 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 20 Dec 2021 14:56:25 -0600 Subject: [PATCH] Flag discontinued items for main Products grid no styling is applied but custom app can do so --- tailbone/views/products.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index e6d2b7d4..7945b5db 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -664,6 +664,8 @@ class ProductView(MasterView): classes = [] if product.not_for_sale: classes.append('not-for-sale') + if product.discontinued: + classes.append('discontinued') if product.deleted: classes.append('deleted') if classes: