Fixed #1235 (DeprecationWarning in utils.views.PDFView)
This commit is contained in:
parent
d7c7bac2d8
commit
bacc9ca87b
@ -562,7 +562,7 @@ class PDFView(PermissionMixin, View):
|
|||||||
story, onFirstPage=firstPage, onLaterPages=laterPages)
|
story, onFirstPage=firstPage, onLaterPages=laterPages)
|
||||||
|
|
||||||
def render_to_response(self, filename):
|
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()
|
filename = u'filename=%s.pdf;' % self.get_filename()
|
||||||
response['Content-Disposition'] = filename.encode('utf-8')
|
response['Content-Disposition'] = filename.encode('utf-8')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user