mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-11 11:47:08 +02:00
Exclude assigned object columns from IP addresses table on interface views
This commit is contained in:
@@ -3387,7 +3387,7 @@ class InterfaceView(generic.ObjectView):
|
||||
model='ipam.IPAddress',
|
||||
filters={'interface_id': lambda ctx: ctx['object'].pk},
|
||||
title=_('IP Addresses'),
|
||||
exclude_columns=['assigned'],
|
||||
exclude_columns=['assigned', 'assigned_object', 'assigned_object_parent'],
|
||||
),
|
||||
ObjectsTablePanel(
|
||||
model='dcim.MACAddress',
|
||||
|
||||
@@ -651,7 +651,7 @@ class VMInterfaceView(generic.ObjectView):
|
||||
ObjectsTablePanel(
|
||||
model='ipam.IPaddress',
|
||||
filters={'vminterface_id': lambda ctx: ctx['object'].pk},
|
||||
exclude_columns=['assigned'],
|
||||
exclude_columns=['assigned', 'assigned_object', 'assigned_object_parent'],
|
||||
actions=[
|
||||
actions.AddObject(
|
||||
'ipam.IPaddress',
|
||||
|
||||
Reference in New Issue
Block a user