From d933d034e05aca0d834eec91f68e193d48195e87 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 28 Jul 2016 16:03:59 -0400 Subject: [PATCH] Changed TenantGroup edit link to a button --- netbox/tenancy/tables.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netbox/tenancy/tables.py b/netbox/tenancy/tables.py index d6e271747..0b77a83ed 100644 --- a/netbox/tenancy/tables.py +++ b/netbox/tenancy/tables.py @@ -6,9 +6,9 @@ from utilities.tables import BaseTable, ToggleColumn from .models import Tenant, TenantGroup -TENANTGROUP_EDIT_LINK = """ +TENANTGROUP_ACTIONS = """ {% if perms.tenancy.change_tenantgroup %} - Edit + {% endif %} """ @@ -22,11 +22,11 @@ class TenantGroupTable(BaseTable): name = tables.LinkColumn(verbose_name='Name') tenant_count = tables.Column(verbose_name='Tenants') slug = tables.Column(verbose_name='Slug') - edit = tables.TemplateColumn(template_code=TENANTGROUP_EDIT_LINK, verbose_name='') + actions = tables.TemplateColumn(template_code=TENANTGROUP_ACTIONS, verbose_name='') class Meta(BaseTable.Meta): model = TenantGroup - fields = ('pk', 'name', 'tenant_count', 'slug', 'edit') + fields = ('pk', 'name', 'tenant_count', 'slug', 'actions') #