Rename last occurence of ExportToModel.model attribute (bis)
This commit is contained in:
parent
eff0600970
commit
964c3e941d
|
@ -768,13 +768,13 @@ class ExportToModelDirectory(Directory):
|
|||
|
||||
def _q_index(self):
|
||||
response = get_response()
|
||||
response.content_type = self.wfstatusitem.model.content_type
|
||||
response.content_type = self.wfstatusitem.model_file.content_type
|
||||
response.set_header('location', '..')
|
||||
|
||||
if response.content_type != 'text/html':
|
||||
response.set_header('content-disposition',
|
||||
'attachment; filename="%s"' %
|
||||
self.wfstatusitem.model.base_filename)
|
||||
self.wfstatusitem.model_file.base_filename)
|
||||
return self.wfstatusitem.apply_template_to_formdata(self.formdata)
|
||||
|
||||
def char2rtf(c):
|
||||
|
|
Loading…
Reference in New Issue