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

9856 test fixes

This commit is contained in:
Arthur
2024-03-06 13:43:40 -08:00
parent 888d9ecec6
commit 0ca46e349f

View File

@ -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')]]: