diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index b74d4b5f66..fb11e9a5c7 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -325,6 +325,7 @@

{% trans "Dimensions" %}

{% if object.total_weight %} {{ object.total_weight|floatformat }} {% trans "Kilograms" %} + ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) {% else %} {{ ''|placeholder }} {% endif %} diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index ad035dd6ba..eec4d63a58 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -103,8 +103,12 @@

{% trans "Weight" %}

{% trans "Total Weight" %} - {{ object.total_weight|floatformat }} {% trans "Kilograms" %} - ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) + {% if object.total_weight %} + {{ object.total_weight|floatformat }} {% trans "Kilograms" %} + ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) + {% else %} + {{ ''|placeholder }} + {% endif %}