Update netbox/templates/dcim/device.html

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
Abhimanyu Saharan 2023-05-09 18:36:53 +05:30 committed by GitHub
parent aa13f45b78
commit 2e5d00ba3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@
<th scope="row">Weight</th> <th scope="row">Weight</th>
<td> <td>
{% if object.total_weight %} {% if object.total_weight %}
{{ object.total_weight|floatformat }} {{ object.device_type.get_weight_unit_display }} {{ object.total_weight|floatformat }} Kilograms
{% else %} {% else %}
{{ ''|placeholder }} {{ ''|placeholder }}
{% endif %} {% endif %}