mirror of
https://github.com/pretix/pretix.git
synced 2026-08-13 11:17:01 +00:00
code style
This commit is contained in:
@@ -82,8 +82,10 @@ class WaitingListEntryEditForm(I18nModelForm):
|
||||
|
||||
items = self.event.items.prefetch_related('variations').prefetch_related('quotas')
|
||||
for item in items:
|
||||
if not item.allow_waitinglist | item.quotas.exists(): # don't offer items in the selection if they don't allow waitinglists or aren't on sale at all
|
||||
if not self.instance.item.pk == item.pk: # except if they are currently set in the waitinglist, this will be then caught on submit in the clean step
|
||||
# don't offer items in the selection if they don't allow waitinglists or aren't on sale at all
|
||||
if not item.allow_waitinglist | item.quotas.exists():
|
||||
# except if they are currently set in the waitinglist, this will be then caught on submit in the clean step
|
||||
if not self.instance.item.pk == item.pk:
|
||||
continue
|
||||
|
||||
if len(item.variations.all()) > 0:
|
||||
|
||||
Reference in New Issue
Block a user