Skip to content

Commit

Permalink
review changes #13743
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Nov 8, 2023
1 parent a09bc45 commit 23c7451
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netbox/dcim/tables/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 23c7451

Please sign in to comment.