Use base_filename and not orig_filname which does not exist anymore in apply_template_to_formdata
This commit is contained in:
parent
964c3e941d
commit
e1ffc483fb
|
@ -861,7 +861,7 @@ class ExportToModel(WorkflowStatusItem):
|
|||
|
||||
def apply_template_to_formdata(self, formdata):
|
||||
process = None
|
||||
if self.model_file.orig_filename.endswith('.rtf'):
|
||||
if self.model_file.base_filename.endswith('.rtf'):
|
||||
process = rtf_process
|
||||
return template_on_formdata(formdata, self.model_file.get_file().read(),
|
||||
process=process)
|
||||
|
|
Loading…
Reference in New Issue