forked from CGM_Public/pretix_original
Fix #860 -- Workaround for SQLite 3.23.0
This commit is contained in:
@@ -52,7 +52,7 @@ def get_grouped_items(event, subevent=None, voucher=None):
|
|||||||
Q(active=True)
|
Q(active=True)
|
||||||
& Q(Q(available_from__isnull=True) | Q(available_from__lte=now()))
|
& Q(Q(available_from__isnull=True) | Q(available_from__lte=now()))
|
||||||
& Q(Q(available_until__isnull=True) | Q(available_until__gte=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)
|
vouchq = Q(hide_without_voucher=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user