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

Fix filtering for platforms, tenant groups

This commit is contained in:
jeremystretch
2021-07-20 15:39:58 -04:00
parent c0bf1576c2
commit 7eef726ee1
6 changed files with 24 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
{% block breadcrumbs %}
{{ block.super }}
{% if object.manufacturer %}
<li class="breadcrumb-item"><a href="{% url 'dcim:platform_list' %}?manufacturer={{ object.manufacturer.slug }}">{{ object.manufacturer }}</a></li>
<li class="breadcrumb-item"><a href="{% url 'dcim:platform_list' %}?manufacturer_id={{ object.manufacturer.pk }}">{{ object.manufacturer }}</a></li>
{% endif %}
{% endblock %}

View File

@@ -5,7 +5,7 @@
{% block breadcrumbs %}
{{ block.super }}
{% for tenantgroup in object.get_ancestors %}
<li class="breadcrumb-item"><a href="{% url 'tenancy:tenantgroup_list' %}?parent={{ tenantgroup.slug }}">{{ tenantgroup }}</a></li>
<li class="breadcrumb-item"><a href="{% url 'tenancy:tenantgroup_list' %}?parent_id={{ tenantgroup.pk }}">{{ tenantgroup }}</a></li>
{% endfor %}
{% endblock %}