mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
* Fixes: #10465 Try to finish #10268 and format all remaining displayed rackunits with floatformat * #10465: PEP8 fix Co-authored-by: Patrick Hurrelmann <patrick.hurrelmann@nfon.com> Co-authored-by: jeremystretch <jstretch@ns1.com>
This commit is contained in:
parent
10352ff5ad
commit
5cc55d1e99
@ -92,6 +92,9 @@ class DeviceTypeTable(NetBoxTable):
|
|||||||
template_code=DEVICE_WEIGHT,
|
template_code=DEVICE_WEIGHT,
|
||||||
order_by=('_abs_weight', 'weight_unit')
|
order_by=('_abs_weight', 'weight_unit')
|
||||||
)
|
)
|
||||||
|
u_height = columns.TemplateColumn(
|
||||||
|
template_code='{{ value|floatformat }}'
|
||||||
|
)
|
||||||
|
|
||||||
class Meta(NetBoxTable.Meta):
|
class Meta(NetBoxTable.Meta):
|
||||||
model = DeviceType
|
model = DeviceType
|
||||||
|
Loading…
Reference in New Issue
Block a user