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')
|
module = get_setting('PLUGIN_MODULE_NAME')
|
||||||
name = _('Liveblog item')
|
name = _('Liveblog item')
|
||||||
model = Liveblog
|
model = Liveblog
|
||||||
|
fields = ('title', 'body', 'publish')
|
||||||
|
|
||||||
def _get_render_template(self, context, instance, placeholder):
|
def _get_render_template(self, context, instance, placeholder):
|
||||||
if instance.publish:
|
if instance.publish:
|
||||||
|
|
|
@ -49,7 +49,6 @@ class Liveblog(AbstractText):
|
||||||
return post.liveblog_group
|
return post.liveblog_group
|
||||||
|
|
||||||
def render(self):
|
def render(self):
|
||||||
print(self.position, self.path)
|
|
||||||
return self.render_plugin()
|
return self.render_plugin()
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<div class="post" data-post-id="{{ instance.id }}">
|
<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 }}
|
{{ instance.content|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue