mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
adds unit to the power port draw #13587
This commit is contained in:
parent
22e474ff96
commit
a373c91d20
@ -466,6 +466,14 @@ class PowerPortTable(ModularDeviceComponentTable, PathEndpointTable):
|
||||
'args': [Accessor('device_id')],
|
||||
}
|
||||
)
|
||||
maximum_draw = tables.TemplateColumn(
|
||||
template_code='''{% if record.maximum_draw %}{{ record.maximum_draw }} W{% else %}—{% endif %}''',
|
||||
verbose_name=_('Maximum draw')
|
||||
)
|
||||
allocated_draw = tables.TemplateColumn(
|
||||
template_code='''{% if record.allocated_draw %}{{ record.allocated_draw }} W{% else %}—{% endif %}''',
|
||||
verbose_name=_('Allocated draw')
|
||||
)
|
||||
tags = columns.TagColumn(
|
||||
url_name='dcim:powerport_list'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user