diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 4c3b4c066..e4effaed6 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1607,7 +1607,7 @@ class InterfaceCSVForm(forms.ModelForm): device=device_id, form_factor=IFACE_FF_LAG).get( lag=lag_name.id ) - if not self.lag: + if not self.data('lag'): return None return lag