Fixed and simplified PDF exports

This commit is contained in:
Raphael Michel
2015-10-11 19:50:08 +02:00
parent 974c5cee79
commit 8dec1abf12
3 changed files with 16 additions and 14 deletions

View File

@@ -355,4 +355,4 @@ class ExportView(EventPermissionRequiredMixin, TemplateView):
cf.expires = now() + timedelta(days=3)
cf.save()
export(self.request.event.id, str(cf.id), self.exporter.identifier, self.exporter.form.cleaned_data)
return redirect(reverse('presale:cachedfile.download', kwargs={'id': cf.id}))
return redirect(reverse('cachedfile.download', kwargs={'id': str(cf.id)}))