cleanup PoC
This commit is contained in:
parent
a6f296226a
commit
c0002ddd5f
3 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<div class="post" data-post-id="{{ instance.id }}">
|
||||
<h2>{{ instance.title }}{{ instance.creation_date|date:"D d M Y H:i" }}</h2>
|
||||
<h3>{{ instance.title }}</h3>
|
||||
<h4>{{ instance.creation_date|date:"D d M Y H:i" }}</h4>
|
||||
{{ instance.content|safe }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue