From 0f504fa9e1f2dc1d622c325b55f7f916c6826cfa Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 13 Sep 2026 20:34:49 +0200 Subject: [PATCH] Fix query --- src/pretix/presale/productlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/presale/productlist.py b/src/pretix/presale/productlist.py index 0a0689819a..d8dfd90bee 100644 --- a/src/pretix/presale/productlist.py +++ b/src/pretix/presale/productlist.py @@ -63,10 +63,10 @@ def _single_item_discounts(event: Event, sales_channel: Union[str, SalesChannel] Q(available_from__isnull=True) | Q(available_from__lte=time_machine_now()), Q(available_until__isnull=True) | Q(available_until__gte=time_machine_now()), Q(all_sales_channels=True) | Q(limit_sales_channels__identifier=sales_channel), - active=True, + Q(active=True), # Only discounts that can be applied before we know the full cart + Q(benefit_only_apply_to_cheapest_n_matches__isnull=True) | Q(benefit_only_apply_to_cheapest_n_matches=1), benefit_same_products=True, - benefit_only_apply_to_cheapest_n_matches__isnull=True, condition_min_value=Decimal("0.00"), condition_min_count=1, ).prefetch_related('condition_limit_products').order_by('position', 'pk')