Skip to content

Commit 2477579

Browse files
committed
Correct device/VM component GraphQL type definitions
1 parent 2f23bdc commit 2477579

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

netbox/dcim/graphql/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from netbox.graphql.types import (
1212
BaseObjectType, NestedGroupObjectType, NetBoxObjectType, OrganizationalObjectType, PrimaryObjectType,
1313
)
14+
from users.graphql.mixins import OwnerMixin
1415
from .filters import *
1516
from .mixins import CabledObjectMixin, PathEndpointMixin
1617

@@ -87,7 +88,7 @@
8788

8889

8990
@strawberry.type
90-
class ComponentType(NetBoxObjectType):
91+
class ComponentType(OwnerMixin, NetBoxObjectType):
9192
"""
9293
Base type for device/VM components
9394
"""

netbox/virtualization/graphql/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin
88
from netbox.graphql.scalars import BigInt
99
from netbox.graphql.types import OrganizationalObjectType, PrimaryObjectType, NetBoxObjectType
10+
from users.graphql.mixins import OwnerMixin
1011
from virtualization import models
1112
from .filters import *
1213

@@ -36,7 +37,7 @@
3637

3738

3839
@strawberry.type
39-
class ComponentType(NetBoxObjectType):
40+
class ComponentType(OwnerMixin, NetBoxObjectType):
4041
"""
4142
Base type for device/VM components
4243
"""

0 commit comments

Comments
 (0)