From dca530f2f2bc4e5162cca53837c786354cbe2d80 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 12 Apr 2018 10:30:04 +0200 Subject: [PATCH] Fix #860 -- Workaround for SQLite 3.23.0 --- src/pretix/presale/views/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/views/event.py b/src/pretix/presale/views/event.py index aeccdb67d5..432bdc1cbf 100644 --- a/src/pretix/presale/views/event.py +++ b/src/pretix/presale/views/event.py @@ -52,7 +52,7 @@ def get_grouped_items(event, subevent=None, voucher=None): Q(active=True) & Q(Q(available_from__isnull=True) | Q(available_from__lte=now())) & Q(Q(available_until__isnull=True) | Q(available_until__gte=now())) - & ~Q(category__is_addon=True) + & Q(Q(category__isnull=True) | Q(category__is_addon=False)) ) vouchq = Q(hide_without_voucher=False)