From 51c9a5efcdd4cd2f7a24ec8660f21e79acf70152 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 15 Jun 2015 09:37:10 +0200 Subject: [PATCH] bugfix --- telemeta/views/epub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telemeta/views/epub.py b/telemeta/views/epub.py index dde884ba..3161d698 100644 --- a/telemeta/views/epub.py +++ b/telemeta/views/epub.py @@ -56,10 +56,9 @@ class BaseEpubMixin(TelemetaBaseMixin): site = Site.objects.get_current() self.chapters = [] default_image_added = False - full_title = corpus.title + ' - ' + collection.title if not collection: - self.filename = self.corpus.code + self.filename = corpus.code self.book.set_title(corpus.title) else: self.filename = collection.code @@ -70,6 +69,7 @@ class BaseEpubMixin(TelemetaBaseMixin): short_title = 'Intro' self.book.set_title(corpus.title[:15] + '... ' + short_title) + full_title = corpus.title + ' - ' + collection.title self.path = self.cache_data.dir + os.sep + self.filename + '.epub' # add metadata -- 2.39.5