mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Voucher import: Allow empty subevent (Z#23171356) (#4622)
This commit is contained in:
@@ -256,6 +256,9 @@ class SubeventColumnMixin:
|
|||||||
]
|
]
|
||||||
|
|
||||||
def clean(self, value, previous_values):
|
def clean(self, value, previous_values):
|
||||||
|
if not value:
|
||||||
|
return None
|
||||||
|
|
||||||
if value in self._subevent_cache:
|
if value in self._subevent_cache:
|
||||||
return self._subevent_cache[value]
|
return self._subevent_cache[value]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user