Truncate comments in JournalEntryTable
This commit is contained in:
parent
8a8342b106
commit
fe4bf62793
|
|
@ -134,6 +134,9 @@ class JournalEntryTable(ObjectJournalTable):
|
|||
orderable=False,
|
||||
verbose_name='Object'
|
||||
)
|
||||
comments = tables.TemplateColumn(
|
||||
template_code='{% load helpers %}{{ value|render_markdown|truncatewords_html:50 }}'
|
||||
)
|
||||
|
||||
class Meta(BaseTable.Meta):
|
||||
model = JournalEntry
|
||||
|
|
|
|||
Loading…
Reference in New Issue