From ea9ed31f4ec6b2e47b7935fbb1bd16e75e3e3654 Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Fri, 14 Sep 2018 12:07:32 +0200 Subject: [PATCH] Prepared 0.3.8 release. --- CHANGES | 5 +++-- content_plugins/plugins/mixins.py | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 15031e7..b9f7cec 100644 --- a/CHANGES +++ b/CHANGES @@ -1,10 +1,11 @@ +0.3.8 2018-09-14 +- SectionBase: use downgrading slug field + 0.3.7 2018-09-05 - shortcuts.render_page_as_text now takes context_data 0.3.5 2018-08-28 - install templates - -0.3.5 2018-08-24 - FootnoteBase as FilesystemTemplateRendererPlugin. 0.3.4 2018-08-24 diff --git a/content_plugins/plugins/mixins.py b/content_plugins/plugins/mixins.py index dff50f9..6253a43 100644 --- a/content_plugins/plugins/mixins.py +++ b/content_plugins/plugins/mixins.py @@ -48,13 +48,14 @@ class StyleMixin(models.Model): ] """ extended_template_names = [] - for t in template_names: - name, ext = os.path.splitext(t) + for template in template_names: + name, ext = os.path.splitext(template) extended_template_names += [ "{name}/_{style}{ext}".format( name=name, style=self.style, ext=ext), - t + template ] + return extended_template_names def get_template_names(self):