forked from CGM_Public/pretix_original
ItemDataExporter: Fix generate_tickets null value
This commit is contained in:
@@ -135,7 +135,7 @@ class ItemDataExporter(ListExporter):
|
|||||||
_("Yes") if i.free_price else "",
|
_("Yes") if i.free_price else "",
|
||||||
str(i.tax_rule) if i.tax_rule else "",
|
str(i.tax_rule) if i.tax_rule else "",
|
||||||
_("Yes") if i.admission else "",
|
_("Yes") if i.admission else "",
|
||||||
_("Yes") if i.generate_tickets else "",
|
_("Yes") if i.generate_tickets else (_("Default") if i.generate_tickets is None else ""),
|
||||||
_("Yes") if i.allow_waitinglist else "",
|
_("Yes") if i.allow_waitinglist else "",
|
||||||
date_format(_max(i.available_from, v.available_from).astimezone(self.timezone),
|
date_format(_max(i.available_from, v.available_from).astimezone(self.timezone),
|
||||||
"SHORT_DATETIME_FORMAT") if i.available_from or v.available_from else "",
|
"SHORT_DATETIME_FORMAT") if i.available_from or v.available_from else "",
|
||||||
@@ -177,7 +177,7 @@ class ItemDataExporter(ListExporter):
|
|||||||
_("Yes") if i.free_price else "",
|
_("Yes") if i.free_price else "",
|
||||||
str(i.tax_rule) if i.tax_rule else "",
|
str(i.tax_rule) if i.tax_rule else "",
|
||||||
_("Yes") if i.admission else "",
|
_("Yes") if i.admission else "",
|
||||||
_("Yes") if i.generate_tickets else "",
|
_("Yes") if i.generate_tickets else (_("Default") if i.generate_tickets is None else ""),
|
||||||
_("Yes") if i.allow_waitinglist else "",
|
_("Yes") if i.allow_waitinglist else "",
|
||||||
date_format(i.available_from.astimezone(self.timezone),
|
date_format(i.available_from.astimezone(self.timezone),
|
||||||
"SHORT_DATETIME_FORMAT") if i.available_from else "",
|
"SHORT_DATETIME_FORMAT") if i.available_from else "",
|
||||||
|
|||||||
Reference in New Issue
Block a user