Skip to content

Commit 33c44c2

Browse files
committed
#492: Extend tenancy tables
1 parent cd0ee4c commit 33c44c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

netbox/tenancy/tables.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class TenantGroupTable(BaseTable):
4444
tenant_count = tables.Column(
4545
verbose_name='Tenants'
4646
)
47-
slug = tables.Column()
4847
actions = tables.TemplateColumn(
4948
template_code=TENANTGROUP_ACTIONS,
5049
attrs={'td': {'class': 'text-right noprint'}},
@@ -54,6 +53,7 @@ class TenantGroupTable(BaseTable):
5453
class Meta(BaseTable.Meta):
5554
model = TenantGroup
5655
fields = ('pk', 'name', 'tenant_count', 'description', 'slug', 'actions')
56+
default_columns = ('pk', 'name', 'tenant_count', 'description', 'actions')
5757

5858

5959
#
@@ -66,4 +66,5 @@ class TenantTable(BaseTable):
6666

6767
class Meta(BaseTable.Meta):
6868
model = Tenant
69-
fields = ('pk', 'name', 'group', 'description')
69+
fields = ('pk', 'name', 'slug', 'group', 'description')
70+
default_columns = ('pk', 'name', 'group', 'description')

0 commit comments

Comments
 (0)