cleanup PoC

This commit is contained in:
Iacopo Spalletti 2016-04-17 12:02:04 +02:00
parent a6f296226a
commit c0002ddd5f
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
3 changed files with 3 additions and 2 deletions

View file

@ -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:

View file

@ -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):

View file

@ -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>