mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 20:12:42 -06:00
Fix device/VM component type definitions
This commit is contained in:
@@ -87,7 +87,7 @@ __all__ = (
|
|||||||
|
|
||||||
|
|
||||||
@strawberry.type
|
@strawberry.type
|
||||||
class ComponentType(PrimaryObjectType):
|
class ComponentType(NetBoxObjectType):
|
||||||
"""
|
"""
|
||||||
Base type for device/VM components
|
Base type for device/VM components
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import strawberry_django
|
|||||||
from extras.graphql.mixins import ConfigContextMixin, ContactsMixin
|
from extras.graphql.mixins import ConfigContextMixin, ContactsMixin
|
||||||
from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin
|
from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin
|
||||||
from netbox.graphql.scalars import BigInt
|
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 virtualization import models
|
||||||
from .filters import *
|
from .filters import *
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ __all__ = (
|
|||||||
|
|
||||||
|
|
||||||
@strawberry.type
|
@strawberry.type
|
||||||
class ComponentType(PrimaryObjectType):
|
class ComponentType(NetBoxObjectType):
|
||||||
"""
|
"""
|
||||||
Base type for device/VM components
|
Base type for device/VM components
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user