Fix #860 -- Workaround for SQLite 3.23.0

This commit is contained in:
Raphael Michel
2018-04-12 10:30:04 +02:00
parent c9f9668e52
commit dca530f2f2

View File

@@ -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)