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.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())