summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-02 20:51:53 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-02 20:51:53 +0100
commite53dafe0aadc4f20bb05e875e982da65f9b01944 (patch)
treec8de0af4f7fd913856d301bf98d623f140f80a61 /ishtar_common/models.py
parent265922c29f9d35b3a5a2a007e4d6938e3ec10e36 (diff)
downloadIshtar-e53dafe0aadc4f20bb05e875e982da65f9b01944.tar.bz2
Ishtar-e53dafe0aadc4f20bb05e875e982da65f9b01944.zip
Prevent unicode problem when generating an ooo file
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 7777d7d77..00a37ed97 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -640,7 +640,7 @@ class DocumentTemplate(models.Model):
def publish(self, c_object):
tempdir = tempfile.mkdtemp("-ishtardocs")
output_name = tempdir + os.path.sep + \
- self.name.replace(' ', '_').lower() + u'-' +\
+ slugify(self.name.replace(' ', '_').lower()) + u'-' +\
datetime.date.today().strftime('%Y-%m-%d') +\
u"." + self.template.name.split('.')[-1]
missing = ooo_replace(self.template, output_name, c_object.get_values())