diff --git a/netbox/dcim/tests/test_api.py b/netbox/dcim/tests/test_api.py index 17ac672d9..264102fbe 100644 --- a/netbox/dcim/tests/test_api.py +++ b/netbox/dcim/tests/test_api.py @@ -68,7 +68,7 @@ class Mixins: class RegionTest(APIViewTestCases.APIViewTestCase): model = Region - brief_fields = ['id', 'name', 'site_count', 'slug', 'url'] + brief_fields = ['_depth', 'id', 'name', 'site_count', 'slug', 'url'] create_data = [ { 'name': 'Region 4', @@ -155,7 +155,7 @@ class SiteTest(APIViewTestCases.APIViewTestCase): class RackGroupTest(APIViewTestCases.APIViewTestCase): model = RackGroup - brief_fields = ['id', 'name', 'rack_count', 'slug', 'url'] + brief_fields = ['_depth', 'id', 'name', 'rack_count', 'slug', 'url'] @classmethod def setUpTestData(cls): diff --git a/netbox/tenancy/tests/test_api.py b/netbox/tenancy/tests/test_api.py index b06a8213a..f04b2a7ce 100644 --- a/netbox/tenancy/tests/test_api.py +++ b/netbox/tenancy/tests/test_api.py @@ -16,7 +16,7 @@ class AppTest(APITestCase): class TenantGroupTest(APIViewTestCases.APIViewTestCase): model = TenantGroup - brief_fields = ['id', 'name', 'slug', 'tenant_count', 'url'] + brief_fields = ['_depth', 'id', 'name', 'slug', 'tenant_count', 'url'] @classmethod def setUpTestData(cls):