Compare commits

...

1 Commits

Author SHA1 Message Date
Kenneth SOARES
c7fe8961ab fixed display of archived products 2025-09-16 12:43:03 +02:00

View File

@@ -690,8 +690,10 @@ class Counter(models.Model):
Prices will be annotated
"""
products = self.products.select_related("product_type").prefetch_related(
"buying_groups"
products = (
self.products.filter(archived=False)
.select_related("product_type")
.prefetch_related("buying_groups")
)
# Only include age appropriate products