Skip to content

Commit

Permalink
review changes #13587
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Nov 8, 2023
1 parent a373c91 commit 92cdf42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netbox/dcim/tables/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,12 @@ class PowerPortTable(ModularDeviceComponentTable, PathEndpointTable):
'args': [Accessor('device_id')],
}
)
maximum_draw = tables.TemplateColumn(
template_code='''{% if record.maximum_draw %}{{ record.maximum_draw }} W{% else %}—{% endif %}''',
maximum_draw = columns.TemplateColumn(
template_code='''{% if record.maximum_draw %}{{ value }} W{% endif %}''',
verbose_name=_('Maximum draw')
)
allocated_draw = tables.TemplateColumn(
template_code='''{% if record.allocated_draw %}{{ record.allocated_draw }} W{% else %}—{% endif %}''',
allocated_draw = columns.TemplateColumn(
template_code='''{% if record.allocated_draw %}{{ value }} W{% endif %}''',
verbose_name=_('Allocated draw')
)
tags = columns.TagColumn(
Expand Down

0 comments on commit 92cdf42

Please sign in to comment.