diff --git a/content_plugins/base.py b/content_plugins/base.py index 2585a71..a92f93d 100644 --- a/content_plugins/base.py +++ b/content_plugins/base.py @@ -171,7 +171,7 @@ class SectionBase(StyleMixin, FilesystemTemplateRendererPlugin): # FIXME Not need, members are accessible through {{ content.slug }} etc. def get_plugin_context(self, context=None, **kwargs): - context = super().get_plugin_context(context=None, **kwargs) + context = super().get_plugin_context(context=context, **kwargs) context['slug'] = self.slug context['subheading'] = self.subheading return context diff --git a/content_plugins/plugins/mixins.py b/content_plugins/plugins/mixins.py index 29dc639..3d7d08f 100644 --- a/content_plugins/plugins/mixins.py +++ b/content_plugins/plugins/mixins.py @@ -28,6 +28,7 @@ class StyleMixin(models.Model): style = getattr(self, 'style', None) or 'default' return slugify(style).replace("_", "-") + # TODO Remove stale code # # Compatibiliy with super classes not having a prefixed_path method # def prefixed_path(self, path): # if hasattr(super(), 'prefixed_path'):