diff --git a/netbox/dcim/api/nested_serializers.py b/netbox/dcim/api/nested_serializers.py index 1be8bb9dc0..f3887963a8 100644 --- a/netbox/dcim/api/nested_serializers.py +++ b/netbox/dcim/api/nested_serializers.py @@ -432,11 +432,10 @@ class Meta: class NestedVirtualChassisSerializer(WritableNestedSerializer): url = serializers.HyperlinkedIdentityField(view_name='dcim-api:virtualchassis-detail') master = NestedDeviceSerializer() - member_count = serializers.IntegerField(read_only=True) class Meta: model = models.VirtualChassis - fields = ['id', 'url', 'display', 'name', 'master', 'member_count'] + fields = ['id', 'url', 'display', 'name', 'master'] # diff --git a/netbox/dcim/tests/test_api.py b/netbox/dcim/tests/test_api.py index acd52178d3..044692c8ad 100644 --- a/netbox/dcim/tests/test_api.py +++ b/netbox/dcim/tests/test_api.py @@ -1982,7 +1982,7 @@ def test_get_connected_device(self): class VirtualChassisTest(APIViewTestCases.APIViewTestCase): model = VirtualChassis - brief_fields = ['display', 'id', 'master', 'member_count', 'name', 'url'] + brief_fields = ['display', 'id', 'master', 'name', 'url'] @classmethod def setUpTestData(cls):