From 3cde4af189269c326c43d049abdb004b33d82629 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 20 Aug 2017 00:44:55 +0200 Subject: [PATCH] syntax --- src/tickets/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tickets/views.py b/src/tickets/views.py index 8a109b07..895034ad 100644 --- a/src/tickets/views.py +++ b/src/tickets/views.py @@ -41,7 +41,7 @@ class ShopTicketDownloadView(LoginRequiredMixin, SingleObjectMixin, View): def get(self, request, *args, **kwargs): response = HttpResponse(content_type='application/pdf') response['Content-Disposition'] = 'attachment; filename="{type}_ticket_{pk}.pdf"'.format( - type=self.get_object().shortname + type=self.get_object().shortname, pk=self.get_object().pk ) response.write(self.get_object().generate_pdf().getvalue())