Closes #5873: Use numeric IDs in all object URLs

This commit is contained in:
Jeremy Stretch
2021-02-26 17:23:23 -05:00
parent 1dcd857ca6
commit 6a9b50f95d
37 changed files with 97 additions and 126 deletions
+1 -1
View File
@@ -74,7 +74,7 @@
<tr>
<td>Provider</td>
<td>
<a href="{% url 'circuits:provider' slug=object.provider.slug %}">{{ object.provider }}</a>
<a href="{{ object.provider.get_absolute_url }}">{{ object.provider }}</a>
</td>
</tr>
<tr>
@@ -32,7 +32,7 @@
{% if termination.site.region %}
<a href="{{ termination.site.region.get_absolute_url }}">{{ termination.site.region }}</a> /
{% endif %}
<a href="{% url 'dcim:site' slug=termination.site.slug %}">{{ termination.site }}</a>
<a href="{{ termination.site.get_absolute_url }}">{{ termination.site }}</a>
</td>
</tr>
<tr>
+1 -1
View File
@@ -51,7 +51,7 @@
</li>
{% if perms.extras.view_objectchange %}
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
<a href="{% url 'circuits:provider_changelog' slug=object.slug %}">Change Log</a>
<a href="{% url 'circuits:provider_changelog' pk=object.pk %}">Change Log</a>
</li>
{% endif %}
</ul>