linting error

This commit is contained in:
Austin de Coup-Crank 2023-05-15 15:00:41 -05:00
parent 478b27ae18
commit 73891479ae

View File

@ -350,7 +350,7 @@ class IPAddressForm(TenancyForm, NetBoxModelForm):
self.add_error(
'primary_for_parent', "Only IP addresses assigned to an interface can be designated as primary IPs."
)
# Do not allow assigning a network ID or broadcast address to an interface.
if interface:
if address := self.cleaned_data.get('address'):