fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
document stages on import,
[redakcja.git]
/
apps
/
wiki
/
models.py
diff --git
a/apps/wiki/models.py
b/apps/wiki/models.py
index
7887e5d
..
9eb77a5
100644
(file)
--- 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
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:
@staticmethod
def listener_saved(sender, instance, created, **kwargs):
if instance.book: