This commit is contained in:
Jamie Murphy 2023-06-26 22:55:59 +01:00
parent 077e5c465e
commit 9c681e63dc
2 changed files with 2 additions and 1 deletions

View File

@ -2456,7 +2456,7 @@ class InterfaceView(generic.ObjectView):
vdc_table = tables.VirtualDeviceContextTable(
data=instance.vdcs.restrict(request.user, 'view').prefetch_related('device'),
exclude=('tenant', 'tenant_group', 'primary_ip', 'primary_ip4', 'primary_ip6', 'comments', 'tags',
'created', 'last_updated', 'actions', 'oob_ip', 'oob_ip4', 'oob_ip6' ),
'created', 'last_updated', 'actions', 'oob_ip', 'oob_ip4', 'oob_ip6'),
orderable=False
)

View File

@ -63,6 +63,7 @@ def clear_primary_ip(instance, **kwargs):
if virtualmachine:
virtualmachine.save()
@receiver(pre_delete, sender=IPAddress)
def clear_oob_ip(instance, **kwargs):
"""