From bacc9ca87b0fbab94e6771b2045780d1dc1e31e4 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sat, 17 May 2014 13:42:18 +0200 Subject: [PATCH] Fixed #1235 (DeprecationWarning in utils.views.PDFView) --- openslides/utils/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/utils/views.py b/openslides/utils/views.py index 87cda5e07..bb05a87f4 100644 --- a/openslides/utils/views.py +++ b/openslides/utils/views.py @@ -562,7 +562,7 @@ class PDFView(PermissionMixin, View): story, onFirstPage=firstPage, onLaterPages=laterPages) def render_to_response(self, filename): - response = HttpResponse(mimetype='application/pdf') + response = HttpResponse(content_type='application/pdf') filename = u'filename=%s.pdf;' % self.get_filename() response['Content-Disposition'] = filename.encode('utf-8')