diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-04-21 17:57:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-04-21 17:57:59 +0200 |
commit | 176414c5fc5bb64e2a2f1bd3f12dfc64de5e88ec (patch) | |
tree | 8acdc9d1fd6f1f46e8e3a07dc9d2c71cf28d2cb8 /ishtar_common/models.py | |
parent | 6de79daabea26ff88b79b3ce402521ca454fe453 (diff) | |
download | Ishtar-176414c5fc5bb64e2a2f1bd3f12dfc64de5e88ec.tar.bz2 Ishtar-176414c5fc5bb64e2a2f1bd3f12dfc64de5e88ec.zip |
Restore temporary old ooo_replace
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 5 |
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): |