complete_template works a little different.

It uses a Word doc as the Jinja template
Need to decide what to do about this case
This commit is contained in:
mike cullerton 2021-10-16 14:22:07 -04:00
parent 983c4104e1
commit f9856d68a9
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ Takes two arguments:
return image_file_data return image_file_data
def make_template(self, binary_stream, context, image_file_data=None): def make_template(self, binary_stream, context, image_file_data=None):
# TODO: Move this into the jinja_service?
doc = DocxTemplate(binary_stream) doc = DocxTemplate(binary_stream)
doc_context = copy.deepcopy(context) doc_context = copy.deepcopy(context)
doc_context = self.rich_text_update(doc_context) doc_context = self.rich_text_update(doc_context)