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

Clean up organizational object URLs

This commit is contained in:
Jeremy Stretch
2021-03-29 16:17:25 -04:00
parent 12945704e9
commit 3869028d53
16 changed files with 51 additions and 39 deletions

View File

@@ -4,7 +4,7 @@
{% block breadcrumbs %}
<li><a href="{% url 'circuits:circuit_list' %}">Circuits</a></li>
<li><a href="{% url 'circuits:circuit_list' %}?provider={{ object.provider.slug }}">{{ object.provider }}</a></li>
<li><a href="{% url 'circuits:circuit_list' %}?provider_id={{ object.provider.pk }}">{{ object.provider }}</a></li>
<li>{{ object.cid }}</li>
{% endblock %}

View File

@@ -45,7 +45,7 @@
<tr>
<td>Circuits</td>
<td>
<a href="{% url 'circuits:circuit_list' %}?provider={{ object.slug }}">{{ circuits_table.rows|length }}</a>
<a href="{% url 'circuits:circuit_list' %}?provider_id={{ object.pk }}">{{ circuits_table.rows|length }}</a>
</td>
</tr>
</table>