Skip to content

Commit e1b7a3a

Browse files
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 <[email protected]> --------- Co-authored-by: Jeremy Stretch <[email protected]>
1 parent 2b2c559 commit e1b7a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox/templates/dcim/device.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ <h5 class="card-header">Dimensions</h5>
313313
<tr>
314314
<th scope="row">Weight</th>
315315
<td>
316-
{% if object.device_type.weight %}
317-
{{ object.device_type.weight|floatformat }} {{ object.device_type.get_weight_unit_display }}
316+
{% if object.total_weight %}
317+
{{ object.total_weight|floatformat }} Kilograms
318318
{% else %}
319319
{{ ''|placeholder }}
320320
{% endif %}

0 commit comments

Comments
 (0)