Fix waiting list processing with infinite-size quotas

This commit is contained in:
Raphael Michel
2018-01-24 15:04:23 +01:00
parent c50c5177b8
commit a81a4b895a
3 changed files with 21 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ class WaitingListEntry(LoggedModel):
if self.variation
else self.item.check_quotas(count_waitinglist=False, subevent=self.subevent, _cache=quota_cache)
)
if availability[1] < 1:
if availability[1] is None or availability[1] < 1:
raise WaitingListException(_('This product is currently not available.'))
if self.voucher:
raise WaitingListException(_('A voucher has already been sent to this person.'))