1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Moved display_name from serializer to model

This commit is contained in:
Jeremy Stretch
2016-06-21 15:22:11 -04:00
parent 2866232b8b
commit f17938f156
4 changed files with 12 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
{% extends '_base.html' %}
{% load render_table from django_tables2 %}
{% block title %}VLAN {{ vlan }}{% endblock %}
{% block title %}VLAN {{ vlan.display_name }}{% endblock %}
{% block content %}
<div class="row">
@@ -55,6 +55,10 @@
<td>VLAN ID</td>
<td>{{ vlan.vid }}</td>
</tr>
<tr>
<td>Name</td>
<td>{{ vlan.name }}</td>
</tr>
<tr>
<td>Status</td>
<td>
@@ -85,7 +89,7 @@
<a href="{% url 'dcim:site' slug=p.site.slug %}">{{ p.site }}</a>
{% endif %}
</td>
<td>{{ p.status }}</td>
<td>{{ p.get_status_display }}</td>
<td>{{ p.role }}</td>
</tr>
{% endfor %}