1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Rename CablePath.is_connected to is_active

This commit is contained in:
Jeremy Stretch
2020-10-05 11:13:33 -04:00
parent 13db22d392
commit 3d34f1cdcb
9 changed files with 65 additions and 65 deletions

View File

@@ -52,7 +52,7 @@ class ConnectedEndpointSerializer(ValidatedModelSerializer):
@swagger_serializer_method(serializer_or_field=serializers.BooleanField)
def get_connection_status(self, obj):
if obj._path is not None:
return obj._path.is_connected
return obj._path.is_active
return None