Closes #19428: Add u_height column to devices table

This commit is contained in:
Jeremy Stretch 2025-09-04 15:44:34 -04:00
parent ea50786b5c
commit 0a336465f2

View File

@ -195,6 +195,11 @@ class DeviceTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
linkify=True,
verbose_name=_('Type')
)
u_height = columns.TemplateColumn(
accessor=tables.A('device_type.u_height'),
verbose_name=_('U Height'),
template_code='{{ value|floatformat }}'
)
platform = tables.Column(
linkify=True,
verbose_name=_('Platform')