This commit is contained in:
Juho Ylikorpi 2022-07-27 15:30:49 +03:00
parent a6be8dccf5
commit 56c4c186ce
3 changed files with 6 additions and 1 deletions

View File

@ -576,6 +576,7 @@ class CablePath(models.Model):
[object_to_path_node(circuit_termination)], [object_to_path_node(circuit_termination)],
[object_to_path_node(circuit_termination.provider_network)], [object_to_path_node(circuit_termination.provider_network)],
]) ])
is_complete = True
break break
elif circuit_termination.site and not circuit_termination.cable: elif circuit_termination.site and not circuit_termination.cable:
# Circuit terminates to a Site # Circuit terminates to a Site

View File

@ -123,5 +123,5 @@ class CableTable(TenancyColumnsMixin, NetBoxTable):
'length', 'tags', 'created', 'last_updated', 'length', 'tags', 'created', 'last_updated',
) )
default_columns = ( default_columns = (
'pk', 'id', 'label', 'a_terminations', 'b_terminations', 'status', 'type', 'pk', 'id', 'label', 'device_a', 'a_terminations', 'device_b', 'b_terminations', 'status', 'type',
) )

View File

@ -1,5 +1,9 @@
LINKTERMINATION = """ LINKTERMINATION = """
{% for termination in value %} {% for termination in value %}
{% if termination.parent_object %}
<a href="{{ termination.parent_object.get_absolute_url }}">{{ termination.parent_object }}</a>
<i class="mdi mdi-chevron-right"></i>
{% endif %}
<a href="{{ termination.get_absolute_url }}">{{ termination }}</a>{% if not forloop.last %},{% endif %} <a href="{{ termination.get_absolute_url }}">{{ termination }}</a>{% if not forloop.last %},{% endif %}
{% empty %} {% empty %}
{{ ''|placeholder }} {{ ''|placeholder }}