From 176414c5fc5bb64e2a2f1bd3f12dfc64de5e88ec Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 21 Apr 2015 17:57:59 +0200 Subject: Restore temporary old ooo_replace --- ishtar_common/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models.py') 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): -- cgit v1.2.3