From 165c3f59d8708e505f212d0d31dd326a8221da10 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 22 Oct 2025 10:08:28 -0400 Subject: [PATCH] Fix device/VM component type definitions --- netbox/dcim/graphql/types.py | 2 +- netbox/virtualization/graphql/types.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 81aedcf1e..8b72807dd 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -87,7 +87,7 @@ __all__ = ( @strawberry.type -class ComponentType(PrimaryObjectType): +class ComponentType(NetBoxObjectType): """ Base type for device/VM components """ diff --git a/netbox/virtualization/graphql/types.py b/netbox/virtualization/graphql/types.py index 870fab9e2..e67c95489 100644 --- a/netbox/virtualization/graphql/types.py +++ b/netbox/virtualization/graphql/types.py @@ -6,7 +6,7 @@ import strawberry_django from extras.graphql.mixins import ConfigContextMixin, ContactsMixin from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin from netbox.graphql.scalars import BigInt -from netbox.graphql.types import OrganizationalObjectType, PrimaryObjectType +from netbox.graphql.types import OrganizationalObjectType, PrimaryObjectType, NetBoxObjectType from virtualization import models from .filters import * @@ -36,7 +36,7 @@ __all__ = ( @strawberry.type -class ComponentType(PrimaryObjectType): +class ComponentType(NetBoxObjectType): """ Base type for device/VM components """