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

review changes #13743

This commit is contained in:
Abhimanyu Saharan
2023-11-09 02:54:56 +05:30
committed by Jeremy Stretch
parent ac4b46b502
commit d2c727c0a2

View File

@ -87,8 +87,9 @@ class PowerFeedTable(TenancyColumnsMixin, CableTerminationTable):
linkify=True,
verbose_name=_('Tenant')
)
site = tables.TemplateColumn(
template_code='''{% if record.rack %}{{ record.rack.site|linkify }}{% else %}—{% endif %}''',
site = tables.Column(
accessor='rack__site',
linkify=True,
verbose_name=_('Site'),
)
comments = columns.MarkdownColumn(