Преглед изворни кода

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>
Abhimanyu Saharan пре 2 година
родитељ
комит
e1b7a3aeb6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      netbox/templates/dcim/device.html

+ 2 - 2
netbox/templates/dcim/device.html

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