Further field name references were found in `consoleport.html`. These have now been removed, so we rely on proper a proper `__str__` implementation of both `ConsolePort` and `ConsoleServerPort`.
This commit is contained in:
Tom Strickx 2017-10-27 11:26:38 -07:00
parent 0a04bb110a
commit e26a0574ba

View File

@ -1,13 +1,13 @@
<tr class="consoleport{% if cp.cs_port and not cp.connection_status %} info{% endif %}"> <tr class="consoleport{% if cp.cs_port and not cp.connection_status %} info{% endif %}">
<td> <td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ cp.name }} <i class="fa fa-fw fa-keyboard-o"></i> {{ cp }}
</td> </td>
{% if cp.cs_port %} {% if cp.cs_port %}
<td> <td>
<a href="{% url 'dcim:device' pk=cp.cs_port.device.pk %}">{{ cp.cs_port.device }}</a> <a href="{% url 'dcim:device' pk=cp.cs_port.device.pk %}">{{ cp.cs_port.device }}</a>
</td> </td>
<td> <td>
{{ cp.cs_port.name }} {{ cp.cs_port }}
</td> </td>
{% else %} {% else %}
<td colspan="2"> <td colspan="2">