mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Refs #44 -- Added background queue support for file export
This commit is contained in:
@@ -204,11 +204,6 @@ class OverviewReportExporter(BaseExporter):
|
||||
identifier = 'pdfreport'
|
||||
verbose_name = _('Order overview (PDF)')
|
||||
|
||||
def render(self, request):
|
||||
response = HttpResponse(content_type='application/pdf')
|
||||
response['Content-Disposition'] = 'inline; filename="report-%s.pdf"' % request.event.slug
|
||||
|
||||
report = OverviewReport(request.event)
|
||||
|
||||
response.write(report.create())
|
||||
return response
|
||||
def render(self, form_data):
|
||||
report = OverviewReport(self.event)
|
||||
return 'report-%s.pdf' % self.event.slug, 'application/pdf', report.create()
|
||||
|
||||
Reference in New Issue
Block a user