mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
pep8
This commit is contained in:
parent
077e5c465e
commit
9c681e63dc
@ -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
|
||||
)
|
||||
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user