forked from CGM_Public/pretix_original
Fix issue that blocks seat sold in canceled position
This commit is contained in:
@@ -140,7 +140,10 @@ class Seat(models.Model):
|
|||||||
|
|
||||||
if self.blocked and sales_channel not in self.event.settings.seating_allow_blocked_seats_for_channel:
|
if self.blocked and sales_channel not in self.event.settings.seating_allow_blocked_seats_for_channel:
|
||||||
return False
|
return False
|
||||||
opqs = self.orderposition_set.filter(order__status__in=[Order.STATUS_PENDING, Order.STATUS_PAID])
|
opqs = self.orderposition_set.filter(
|
||||||
|
order__status__in=[Order.STATUS_PENDING, Order.STATUS_PAID],
|
||||||
|
canceled=False
|
||||||
|
)
|
||||||
cpqs = self.cartposition_set.filter(expires__gte=now())
|
cpqs = self.cartposition_set.filter(expires__gte=now())
|
||||||
vqs = self.vouchers.filter(
|
vqs = self.vouchers.filter(
|
||||||
Q(Q(valid_until__isnull=True) | Q(valid_until__gte=now())) &
|
Q(Q(valid_until__isnull=True) | Q(valid_until__gte=now())) &
|
||||||
|
|||||||
Reference in New Issue
Block a user