Browse Source

Fix.

master 0.3.11
Erik Stein 7 years ago
parent
commit
0cbc027cb4
  1. 2
      content_plugins/base.py
  2. 1
      content_plugins/plugins/mixins.py

2
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

1
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'):

Loading…
Cancel
Save