added default get_filename for PDFView
This commit is contained in:
parent
07e9d8e9f9
commit
59225bf822
@ -230,6 +230,9 @@ class PDFView(PermissionMixin, View):
|
|||||||
def get_document_title(self):
|
def get_document_title(self):
|
||||||
return self.document_title
|
return self.document_title
|
||||||
|
|
||||||
|
def get_get_filename(self):
|
||||||
|
return self.filename
|
||||||
|
|
||||||
def render_to_response(self, filename):
|
def render_to_response(self, filename):
|
||||||
response = HttpResponse(mimetype='application/pdf')
|
response = HttpResponse(mimetype='application/pdf')
|
||||||
filename = u'filename=%s.pdf;' % self.get_filename()
|
filename = u'filename=%s.pdf;' % self.get_filename()
|
||||||
|
Loading…
Reference in New Issue
Block a user