From 7010752bb0a24a07f87c4b785dda165b02aecf2f Mon Sep 17 00:00:00 2001 From: Mira Weller Date: Fri, 7 Nov 2025 11:12:43 +0100 Subject: [PATCH] Fix schema --- src/pretix/control/logdisplay.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pretix/control/logdisplay.py b/src/pretix/control/logdisplay.py index b6fd11f9b2..55cd86bd93 100644 --- a/src/pretix/control/logdisplay.py +++ b/src/pretix/control/logdisplay.py @@ -602,14 +602,14 @@ class CoreVoucherLogEntryType(VoucherLogEntryType): data_schema = { "type": "object", "properties": { - "item": {"type": "number", "shred": False, }, + "item": {"type": ["null", "number"], "shred": False, }, "variation": {"type": ["null", "number"], "shred": False, }, "tag": {"type": "string", "shred": False,}, "block_quota": {"type": "boolean", "shred": False, }, "valid_until": {"type": ["null", "string"], "shred": False, }, "min_usages": {"type": "number", "shred": False, }, "max_usages": {"type": "number", "shred": False, }, - "subevent": {"type": ["null", "number"], "shred": False, }, + "subevent": {"type": ["null", "number", "object"], "shred": False, }, "source": {"type": "string", "shred": False,}, "allow_ignore_quota": {"type": "boolean", "shred": False, }, "code": {"type": "string", "shred": False,}, @@ -617,7 +617,7 @@ class CoreVoucherLogEntryType(VoucherLogEntryType): "price_mode": {"type": "string", "shred": False,}, "seat": {"type": "string", "shred": False,}, "quota": {"type": ["null", "number"], "shred": False,}, - "value": {"type": "string", "shred": False,}, + "value": {"type": ["null", "string"], "shred": False,}, "redeemed": {"type": "number", "shred": False,}, "all_addons_included": {"type": "boolean", "shred": False, }, "all_bundles_included": {"type": "boolean", "shred": False, }, @@ -625,6 +625,14 @@ class CoreVoucherLogEntryType(VoucherLogEntryType): "itemvar": {"type": "string", "shred": False,}, "show_hidden_items": {"type": "boolean", "shred": False, }, + # bulk create: + "bulk": {"type": "boolean", "shred": False,}, + "seats": {"type": "array", "shred": False,}, + "send": {"type": ["string", "boolean"], "shred": False,}, + "send_recipients": {"type": "array", "shred": True,}, + "send_subject": {"type": "string", "shred": False,}, + "send_message": {"type": "string", "shred": True,}, + # pretix.voucher.sent "recipient": {"type": "string", "shred": True,}, "name": {"type": "string", "shred": True,},