From 0ca46e349f5df47af7f1f509998deb56162afbb7 Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 6 Mar 2024 13:43:40 -0800 Subject: [PATCH] 9856 test fixes --- netbox/dcim/graphql/types.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 03b6a96b5..7c10d3747 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -486,8 +486,6 @@ class InterfaceTemplateType(ComponentTemplateObjectType): filters=InventoryItemFilter ) class InventoryItemType(ComponentObjectType): - _name: str - @strawberry_django.field def parent(self) -> Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')] | None: return self.parent @@ -596,7 +594,7 @@ class ManufacturerType(OrganizationalObjectType, ContactsMixin): fields='__all__', filters=ModuleFilter ) -class ModuleType(ComponentObjectType): +class ModuleType(NetBoxObjectType): @strawberry_django.field def interfaces(self) -> List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]: