fix breadcrumb on Application Service

This commit is contained in:
Arthur
2026-03-18 14:10:34 -07:00
parent 8391c6ae95
commit ef0b0eaee9
2 changed files with 12 additions and 1 deletions
-1
View File
@@ -364,7 +364,6 @@ class VLANTranslationPolicy(PrimaryModel):
max_length=100, max_length=100,
unique=True, unique=True,
) )
class Meta: class Meta:
verbose_name = _('VLAN translation policy') verbose_name = _('VLAN translation policy')
verbose_name_plural = _('VLAN translation policies') verbose_name_plural = _('VLAN translation policies')
+12
View File
@@ -1 +1,13 @@
{% extends 'generic/object.html' %} {% extends 'generic/object.html' %}
{% load i18n %}
{% block breadcrumbs %}
{{ block.super }}
{% if object.parent and breadcrumb_queryparam %}
<li class="breadcrumb-item">
<a href="{% url 'ipam:service_list' %}?{{ breadcrumb_queryparam }}={{ object.parent.pk }}">
{{ object.parent }}
</a>
</li>
{% endif %}
{% endblock breadcrumbs %}