Fixed #1235 (DeprecationWarning in utils.views.PDFView)

This commit is contained in:
Emanuel Schuetze 2014-05-17 13:42:18 +02:00
parent d7c7bac2d8
commit bacc9ca87b
1 changed files with 1 additions and 1 deletions

View File

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