mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Variations on pretixpresale's initial ticket layout
This commit is contained in:
@@ -84,7 +84,7 @@ def availability_handler(sender, **kwargs):
|
||||
# Only take this restriction into consideration if it
|
||||
# is directly applied to this variation or if the item
|
||||
# has no variations
|
||||
if len(v) != 0 and ('variation' not in v or v['variation'] not in applied_to):
|
||||
if not v.empty() and ('variation' not in v or v['variation'] not in applied_to):
|
||||
continue
|
||||
|
||||
if restriction.timeframe_from <= now() <= restriction.timeframe_to:
|
||||
|
||||
Reference in New Issue
Block a user