Fixes #734: Corrected display of device type when editing a device

This commit is contained in:
Jeremy Stretch
2016-12-08 09:59:21 -05:00
parent 3a6d7a1f7f
commit d5095362d7
11 changed files with 31 additions and 15 deletions

View File

@@ -153,8 +153,14 @@
<a href="{% url 'dcim:device' pk=device.pk %}">{{ device.name }}</a>
</td>
<td>{{ device.device_role }}</td>
<td>{{ device.device_type }}</td>
<td>{% if device.parent_bay %}<a href="{{ device.parent_bay.device.get_absolute_url }}">{{ device.parent_bay }}</a>{% endif %}</td>
<td>{{ device.device_type.full_name }}</td>
<td>
{% if device.parent_bay %}
<a href="{{ device.parent_bay.device.get_absolute_url }}">{{ device.parent_bay }}</a>
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
</tr>
{% endfor %}
</table>