mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 16:06:43 -06:00
review changes #13587
This commit is contained in:
parent
a373c91d20
commit
92cdf420bb
@ -466,12 +466,12 @@ class PowerPortTable(ModularDeviceComponentTable, PathEndpointTable):
|
|||||||
'args': [Accessor('device_id')],
|
'args': [Accessor('device_id')],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
maximum_draw = tables.TemplateColumn(
|
maximum_draw = columns.TemplateColumn(
|
||||||
template_code='''{% if record.maximum_draw %}{{ record.maximum_draw }} W{% else %}—{% endif %}''',
|
template_code='''{% if record.maximum_draw %}{{ value }} W{% endif %}''',
|
||||||
verbose_name=_('Maximum draw')
|
verbose_name=_('Maximum draw')
|
||||||
)
|
)
|
||||||
allocated_draw = tables.TemplateColumn(
|
allocated_draw = columns.TemplateColumn(
|
||||||
template_code='''{% if record.allocated_draw %}{{ record.allocated_draw }} W{% else %}—{% endif %}''',
|
template_code='''{% if record.allocated_draw %}{{ value }} W{% endif %}''',
|
||||||
verbose_name=_('Allocated draw')
|
verbose_name=_('Allocated draw')
|
||||||
)
|
)
|
||||||
tags = columns.TagColumn(
|
tags = columns.TagColumn(
|
||||||
|
Loading…
Reference in New Issue
Block a user