Missing device reference

This commit is contained in:
Joseph Kennedy 2017-08-26 00:17:21 -04:00
parent 17428e7057
commit e92a72cdb6

View File

@ -1597,6 +1597,7 @@ class InterfaceCSVForm(forms.ModelForm):
def clean_lag(self):
device = None
if self.device is not None:
interface_ordering = self.device.device_type.interface_ordering
lag = Interface.objects.order_naturally(method=interface_ordering).filter(