mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Truncate comments in JournalEntryTable
This commit is contained in:
parent
8a8342b106
commit
fe4bf62793
@ -134,6 +134,9 @@ class JournalEntryTable(ObjectJournalTable):
|
|||||||
orderable=False,
|
orderable=False,
|
||||||
verbose_name='Object'
|
verbose_name='Object'
|
||||||
)
|
)
|
||||||
|
comments = tables.TemplateColumn(
|
||||||
|
template_code='{% load helpers %}{{ value|render_markdown|truncatewords_html:50 }}'
|
||||||
|
)
|
||||||
|
|
||||||
class Meta(BaseTable.Meta):
|
class Meta(BaseTable.Meta):
|
||||||
model = JournalEntry
|
model = JournalEntry
|
||||||
|
Loading…
Reference in New Issue
Block a user