mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Check-in: Handle products without variation in simulator
This commit is contained in:
@@ -114,11 +114,17 @@ def _logic_annotate_for_graphic_explain(rules, ev, rule_data, now_dt):
|
||||
except Item.DoesNotExist:
|
||||
val = "?"
|
||||
elif var == "variation":
|
||||
if not val:
|
||||
val = "-"
|
||||
else:
|
||||
try:
|
||||
val = str(ItemVariation.objects.get(item__event=event, pk=val))
|
||||
except ItemVariation.DoesNotExist:
|
||||
val = "?"
|
||||
elif var == "gate":
|
||||
if not val:
|
||||
val = "-"
|
||||
else:
|
||||
try:
|
||||
val = str(event.organizer.gates.get(pk=val))
|
||||
except Gate.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user