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

Remove deprecated display_name() methods from models

This commit is contained in:
jeremystretch
2021-05-04 16:05:17 -04:00
parent 5856275347
commit ea5d02b1e6
9 changed files with 22 additions and 42 deletions

View File

@@ -79,7 +79,7 @@
{% if object.vlan.group %}
<a href="{{ object.vlan.group.get_absolute_url }}">{{ object.vlan.group }}</a> /
{% endif %}
<a href="{% url 'ipam:vlan' pk=object.vlan.pk %}">{{ object.vlan.display_name }}</a>
<a href="{% url 'ipam:vlan' pk=object.vlan.pk %}">{{ object.vlan }}</a>
{% else %}
<span class="text-muted">None</span>
{% endif %}

View File

@@ -2,7 +2,7 @@
{% load helpers %}
{% load plugins %}
{% block title %}VLAN {{ object.display_name }}{% endblock %}
{% block title %}VLAN {{ object }}{% endblock %}
{% block breadcrumbs %}
<li class="breadcrumb-item">