1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #10202: Clean up TemplateColumn template code & accessors

This commit is contained in:
jeremystretch
2022-08-30 09:53:38 -04:00
parent 924471ee76
commit 14f79ef85a
7 changed files with 9 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ class RackTable(TenancyColumnsMixin, NetBoxTable):
status = columns.ChoiceFieldColumn()
role = columns.ColoredLabelColumn()
u_height = tables.TemplateColumn(
template_code="{{ record.u_height }}U",
template_code="{{ value }}U",
verbose_name='Height'
)
comments = columns.MarkdownColumn()