diff --git a/text/models.py b/text/models.py index e3841f2..e85791f 100644 --- a/text/models.py +++ b/text/models.py @@ -67,6 +67,7 @@ class Text(models.Model): elif author.endswith("."): author = author[:-1] + "_" title = self.title + title = re.sub('[:/]', '_', title) if self.version: title += ".%s" % self.version extension = os.path.splitext(self.file.path)[1].lower()