mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Check-in: New flags for check-in lists (#3577)
This commit is contained in:
@@ -2072,7 +2072,8 @@ class VoucherFilterForm(FilterForm):
|
||||
qs = qs.filter(Q(valid_until__isnull=False) & Q(valid_until__lt=now())).filter(redeemed=0)
|
||||
elif s == 'c':
|
||||
checkins = Checkin.objects.filter(
|
||||
position__voucher=OuterRef('pk')
|
||||
position__voucher=OuterRef('pk'),
|
||||
list__consider_tickets_used=True,
|
||||
)
|
||||
qs = qs.annotate(has_checkin=Exists(checkins)).filter(
|
||||
redeemed__gt=0, has_checkin=True
|
||||
|
||||
Reference in New Issue
Block a user