summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index eb643ff1c..6c153fb9c 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -48,7 +48,7 @@ from django.contrib import admin
from simple_history.models import HistoricalRecords as BaseHistoricalRecords
-from oook_replace.oook_replace import oook_replace
+from ishtar_common.ooo_replace import ooo_replace
from ishtar_common.model_merging import merge_model_objects
from ishtar_common.utils import get_cache
@@ -861,7 +861,8 @@ class DocumentTemplate(models.Model):
slugify(self.name.replace(' ', '_').lower()) + u'-' +\
datetime.date.today().strftime('%Y-%m-%d') +\
u"." + self.template.name.split('.')[-1]
- missing = oook_replace(self.template, output_name, c_object.get_values())
+ values = c_object.get_values()
+ missing = ooo_replace(self.template, output_name, values)
return output_name
class Department(models.Model):