mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
Omit actions column from non-paginated child object tables
This commit is contained in:
parent
a99d14c13f
commit
09b612546b
@ -157,6 +157,7 @@ class RegionView(generic.ObjectView):
|
||||
parent__in=instance.get_descendants(include_self=True)
|
||||
)
|
||||
child_regions_table = tables.RegionTable(child_regions)
|
||||
child_regions_table.columns.hide('actions')
|
||||
|
||||
sites = Site.objects.restrict(request.user, 'view').filter(
|
||||
region=instance
|
||||
@ -241,6 +242,7 @@ class SiteGroupView(generic.ObjectView):
|
||||
parent__in=instance.get_descendants(include_self=True)
|
||||
)
|
||||
child_groups_table = tables.SiteGroupTable(child_groups)
|
||||
child_groups_table.columns.hide('actions')
|
||||
|
||||
sites = Site.objects.restrict(request.user, 'view').filter(
|
||||
group=instance
|
||||
|
@ -178,6 +178,7 @@ class ContactGroupView(generic.ObjectView):
|
||||
parent__in=instance.get_descendants(include_self=True)
|
||||
)
|
||||
child_groups_table = tables.ContactGroupTable(child_groups)
|
||||
child_groups_table.columns.hide('actions')
|
||||
|
||||
contacts = Contact.objects.restrict(request.user, 'view').filter(
|
||||
group=instance
|
||||
|
Loading…
Reference in New Issue
Block a user