From 59225bf822a8f45ba3a5c9100731c0a83fe9e54e Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Wed, 18 Apr 2012 20:57:44 +0200 Subject: [PATCH] added default get_filename for PDFView --- openslides/utils/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openslides/utils/views.py b/openslides/utils/views.py index 81c502268..97921cc16 100644 --- a/openslides/utils/views.py +++ b/openslides/utils/views.py @@ -230,6 +230,9 @@ class PDFView(PermissionMixin, View): def get_document_title(self): return self.document_title + def get_get_filename(self): + return self.filename + def render_to_response(self, filename): response = HttpResponse(mimetype='application/pdf') filename = u'filename=%s.pdf;' % self.get_filename()