X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f4921ca797953ddab6b35786864b2dd523190503..8830e06ad0b466c40747540b5122e6825114a90a:/apps/wiki/models.py diff --git a/apps/wiki/models.py b/apps/wiki/models.py index 7887e5da..9eb77a5c 100644 --- a/apps/wiki/models.py +++ b/apps/wiki/models.py @@ -188,6 +188,11 @@ class Chunk(dvcs_models.Document): creator=creator, slug=slug, comment=comment) return new_chunk + def list_html(self): + _list_html = render_to_string('wiki/chunk_list_item.html', + {'chunk': self}) + return mark_safe(_list_html) + @staticmethod def listener_saved(sender, instance, created, **kwargs): if instance.book: