From fe4bf627937294041a2f6c71c05592b75d40e2c0 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 29 Mar 2021 09:54:06 -0400 Subject: [PATCH] Truncate comments in JournalEntryTable --- netbox/extras/tables.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netbox/extras/tables.py b/netbox/extras/tables.py index b973d16fc..362a57e95 100644 --- a/netbox/extras/tables.py +++ b/netbox/extras/tables.py @@ -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