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:
		@@ -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 %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user