Fix crash in waiting list

This commit is contained in:
Raphael Michel
2021-10-31 17:28:29 +01:00
parent 03de0d5d2e
commit 5d41b20bae

View File

@@ -52,9 +52,9 @@ class WaitingListForm(forms.ModelForm):
items, display_add_to_cart = get_grouped_items(
self.event, self.instance.subevent, require_seat=None,
memberships=(
self.request.customer.usable_memberships(
customer.usable_memberships(
for_event=self.instance.subevent or self.event,
testmode=self.request.event.testmode
testmode=self.event.testmode
)
if customer else None
),