mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix All Invoice-export (missing file extension; missing "all payment providers")
This commit is contained in:
@@ -74,7 +74,7 @@ class InvoiceExporter(BaseExporter):
|
|||||||
if self.is_multievent:
|
if self.is_multievent:
|
||||||
filename = '{}_invoices.zip'.format(self.events.first().organizer.slug)
|
filename = '{}_invoices.zip'.format(self.events.first().organizer.slug)
|
||||||
else:
|
else:
|
||||||
filename = '{}_invoices'.format(self.event.slug)
|
filename = '{}_invoices.zip'.format(self.event.slug)
|
||||||
|
|
||||||
if output_file:
|
if output_file:
|
||||||
return filename, 'application/zip', None
|
return filename, 'application/zip', None
|
||||||
@@ -108,6 +108,8 @@ class InvoiceExporter(BaseExporter):
|
|||||||
choices=[
|
choices=[
|
||||||
('', _('All payment providers')),
|
('', _('All payment providers')),
|
||||||
] + get_all_payment_providers() if self.is_multievent else [
|
] + get_all_payment_providers() if self.is_multievent else [
|
||||||
|
('', _('All payment providers')),
|
||||||
|
] + [
|
||||||
(k, v.verbose_name) for k, v in self.event.get_payment_providers().items()
|
(k, v.verbose_name) for k, v in self.event.get_payment_providers().items()
|
||||||
],
|
],
|
||||||
required=False,
|
required=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user