Refs #44 -- Added background queue support for file export

This commit is contained in:
Raphael Michel
2015-09-15 22:49:38 +02:00
parent 0530416c66
commit 9ecd16c19c
17 changed files with 270 additions and 19 deletions

View File

@@ -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()