mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #5873: Use numeric IDs in all object URLs
This commit is contained in:
@@ -12,7 +12,7 @@ MPTT_LINK = """
|
||||
|
||||
COL_TENANT = """
|
||||
{% if record.tenant %}
|
||||
<a href="{% url 'tenancy:tenant' slug=record.tenant.slug %}" title="{{ record.tenant.description }}">{{ record.tenant }}</a>
|
||||
<a href="{{ record.tenant.get_absolute_url }}" title="{{ record.tenant.description }}">{{ record.tenant }}</a>
|
||||
{% else %}
|
||||
—
|
||||
{% endif %}
|
||||
@@ -35,7 +35,7 @@ class TenantGroupTable(BaseTable):
|
||||
url_params={'group': 'slug'},
|
||||
verbose_name='Tenants'
|
||||
)
|
||||
actions = ButtonsColumn(TenantGroup, pk_field='slug')
|
||||
actions = ButtonsColumn(TenantGroup)
|
||||
|
||||
class Meta(BaseTable.Meta):
|
||||
model = TenantGroup
|
||||
|
Reference in New Issue
Block a user