Skip to content

Commit 09b6125

Browse files
committed
Omit actions column from non-paginated child object tables
1 parent a99d14c commit 09b6125

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

netbox/dcim/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def get_extra_context(self, request, instance):
157157
parent__in=instance.get_descendants(include_self=True)
158158
)
159159
child_regions_table = tables.RegionTable(child_regions)
160+
child_regions_table.columns.hide('actions')
160161

161162
sites = Site.objects.restrict(request.user, 'view').filter(
162163
region=instance
@@ -241,6 +242,7 @@ def get_extra_context(self, request, instance):
241242
parent__in=instance.get_descendants(include_self=True)
242243
)
243244
child_groups_table = tables.SiteGroupTable(child_groups)
245+
child_groups_table.columns.hide('actions')
244246

245247
sites = Site.objects.restrict(request.user, 'view').filter(
246248
group=instance

netbox/tenancy/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def get_extra_context(self, request, instance):
178178
parent__in=instance.get_descendants(include_self=True)
179179
)
180180
child_groups_table = tables.ContactGroupTable(child_groups)
181+
child_groups_table.columns.hide('actions')
181182

182183
contacts = Contact.objects.restrict(request.user, 'view').filter(
183184
group=instance

0 commit comments

Comments
 (0)