forked from CGM_Public/pretix_original
Fix error condition in event cloning
This commit is contained in:
@@ -450,10 +450,8 @@ class Event(EventMixin, LoggedModel):
|
|||||||
if int(s.value) in tax_map:
|
if int(s.value) in tax_map:
|
||||||
s.value = tax_map.get(int(s.value)).pk
|
s.value = tax_map.get(int(s.value)).pk
|
||||||
s.save()
|
s.save()
|
||||||
else:
|
|
||||||
s.delete()
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
s.delete()
|
pass
|
||||||
else:
|
else:
|
||||||
s.save()
|
s.save()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user