Use base_filename and not orig_filname which does not exist anymore in apply_template_to_formdata

This commit is contained in:
Benjamin Dauvergne 2011-06-21 20:07:36 +00:00
parent 964c3e941d
commit e1ffc483fb
1 changed files with 1 additions and 1 deletions

View File

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