diff --git a/djangocms_blog/liveblog/cms_plugins.py b/djangocms_blog/liveblog/cms_plugins.py index 5487a85..6c1895d 100644 --- a/djangocms_blog/liveblog/cms_plugins.py +++ b/djangocms_blog/liveblog/cms_plugins.py @@ -14,6 +14,7 @@ class LiveblogPlugin(TextPlugin): module = get_setting('PLUGIN_MODULE_NAME') name = _('Liveblog item') model = Liveblog + fields = ('title', 'body', 'publish') def _get_render_template(self, context, instance, placeholder): if instance.publish: diff --git a/djangocms_blog/liveblog/models.py b/djangocms_blog/liveblog/models.py index b0172f0..7a3df89 100644 --- a/djangocms_blog/liveblog/models.py +++ b/djangocms_blog/liveblog/models.py @@ -49,7 +49,6 @@ class Liveblog(AbstractText): return post.liveblog_group def render(self): - print(self.position, self.path) return self.render_plugin() def send(self): diff --git a/djangocms_blog/liveblog/templates/liveblog/plugins/liveblog.html b/djangocms_blog/liveblog/templates/liveblog/plugins/liveblog.html index 526af0e..402a2a5 100644 --- a/djangocms_blog/liveblog/templates/liveblog/plugins/liveblog.html +++ b/djangocms_blog/liveblog/templates/liveblog/plugins/liveblog.html @@ -1,4 +1,5 @@