Browse Source

Fixes #13701: Correct display of power feed legs under device view

Jeremy Stretch 2 năm trước cách đây
mục cha
commit
2ffa6d0188
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      docs/release-notes/version-3.6.md
  2. 1 1
      netbox/templates/dcim/device.html

+ 1 - 0
docs/release-notes/version-3.6.md

@@ -4,6 +4,7 @@
 
 ### Bug Fixes
 
+* [#13701](https://github.com/netbox-community/netbox/issues/13701) - Correct display of power feed legs under device view
 * [#13706](https://github.com/netbox-community/netbox/issues/13706) - Restore extra filters dropdown on device interfaces list
 * [#13721](https://github.com/netbox-community/netbox/issues/13721) - Filter VLAN choices by selected site (if any) when creating a prefix
 

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

@@ -296,7 +296,7 @@
                                     {% for leg in utilization.legs %}
                                         <tr>
                                             <td style="padding-left: 20px">
-                                              {% trans "Leg" context "Leg of a power feed" %} {{ leg }}
+                                              {% trans "Leg" context "Leg of a power feed" %} {{ leg.name }}
                                             </td>
                                             <td>{{ leg.outlet_count }}</td>
                                             <td>{{ leg.allocated }}</td>