Compare commits

...
Author SHA1 Message Date
Richard Schreiber 235ae64d88 Exclude items that require a voucher from waitinglist 2026-11-23 10:47:56 +01:00
2 changed files with 3 additions and 1 deletions

No files matched your search

+2 -1
View File
@@ -621,7 +621,8 @@ class Item(LoggedModel):
verbose_name=_('This product can only be bought using a voucher.'),
default=False,
help_text=_('To buy this product, the user needs a voucher that applies to this product '
'either directly or via a quota.')
'either directly or via a quota. Please note that the waitinglist is not '
'available for products requiring a voucher.')
)
require_approval = models.BooleanField(
verbose_name=_('Buying this product requires approval'),
+1
View File
@@ -57,6 +57,7 @@ class WaitingView(EventViewMixin, FormView):
self.request.event,
subevent=self.subevent,
require_seat=None,
base_qs=self.request.event.items.filter(require_voucher=False),
channel=self.request.organizer.sales_channels.get(identifier="web"),
memberships=(
customer.usable_memberships(