diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index b74d4b5f6..867c70c8b 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -324,7 +324,11 @@ {% trans "Weight" %} {% if object.total_weight %} - {{ object.total_weight|floatformat }} {% trans "Kilograms" %} + {% if object.device_type.weight_unit == "lb" %} + {{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %} + {% elif object.device_type.weight_unit == "kg" %} + {{ object.total_weight|floatformat }} {% trans "Kilograms" %} + {% endif %} {% else %} {{ ''|placeholder }} {% endif %}