Fixes interface logging error

This commit is contained in:
Jeremy Stretch 2018-06-25 13:29:23 -04:00
parent 0af36eb99b
commit 06143b6c70

View File

@ -1937,7 +1937,7 @@ class Interface(ComponentModel):
related_object=self.get_component_parent(),
action=action,
object_data=serialize_object(self, extra={
'connected_interface': self.connected_interface.pk,
'connected_interface': self.connected_interface.pk if self.connection else None,
'connection_status': self.connection.connection_status if self.connection else None,
})
).save()