mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
Replaced device type weight with device total weight (#12522)
* replaced device type weight with device total weight #12286 * replaced device type weight with device total weight #12286 * Update netbox/templates/dcim/device.html Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com> --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
parent
2b2c559a37
commit
e1b7a3aeb6
@ -313,8 +313,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Weight</th>
|
<th scope="row">Weight</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.device_type.weight %}
|
{% if object.total_weight %}
|
||||||
{{ object.device_type.weight|floatformat }} {{ object.device_type.get_weight_unit_display }}
|
{{ object.total_weight|floatformat }} Kilograms
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user