Parcourir la source

Remove explicit reference to the `name` field

Remove the explicit usage of the `name` field, and let the __str__ method of the ConsoleServerPort class handle the display
Tom Strickx il y a 7 ans
Parent
commit
1b5aa67f5d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/templates/dcim/inc/consoleserverport.html

+ 1 - 1
netbox/templates/dcim/inc/consoleserverport.html

@@ -5,7 +5,7 @@
         </td>
         </td>
     {% endif %}
     {% endif %}
     <td>
     <td>
-        <i class="fa fa-fw fa-keyboard-o"></i> {{ csp.name }}
+        <i class="fa fa-fw fa-keyboard-o"></i> {{ csp }}
     </td>
     </td>
     <td></td>
     <td></td>
     {% if csp.connected_console %}
     {% if csp.connected_console %}