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

Template and table polish

This commit is contained in:
Jeremy Stretch
2019-03-22 21:58:45 -04:00
parent 681e20133a
commit a208cd156d
4 changed files with 35 additions and 6 deletions

View File

@@ -818,8 +818,11 @@ class PowerFeedTable(BaseTable):
name = tables.LinkColumn()
power_panel = tables.LinkColumn(
viewname='dcim:powerpanel',
args=[Accessor('power_panel.pk')],
args=[Accessor('rack.pk')],
)
rack = tables.LinkColumn(
viewname='dcim:rack',
args=[Accessor('pk')]
)
status = tables.TemplateColumn(
template_code=STATUS_LABEL