mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-16 13:03:51 +00:00
fixed display of archived products
This commit is contained in:
@@ -690,8 +690,10 @@ class Counter(models.Model):
|
|||||||
Prices will be annotated
|
Prices will be annotated
|
||||||
"""
|
"""
|
||||||
|
|
||||||
products = self.products.select_related("product_type").prefetch_related(
|
products = (
|
||||||
"buying_groups"
|
self.products.filter(archived=False)
|
||||||
|
.select_related("product_type")
|
||||||
|
.prefetch_related("buying_groups")
|
||||||
)
|
)
|
||||||
|
|
||||||
# Only include age appropriate products
|
# Only include age appropriate products
|
||||||
|
Reference in New Issue
Block a user