Skip to content

Commit

Permalink
Fixes #15347: Fix querying virtual machine contacts via GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Mar 13, 2024
1 parent 8fe3f5e commit 7350950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions netbox/extras/graphql/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
__all__ = (
'ChangelogMixin',
'ConfigContextMixin',
'ContactsMixin',
'CustomFieldsMixin',
'ImageAttachmentsMixin',
'JournalEntriesMixin',
Expand Down
4 changes: 2 additions & 2 deletions netbox/virtualization/graphql/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dcim.graphql.types import ComponentObjectType
from extras.graphql.mixins import ConfigContextMixin
from extras.graphql.mixins import ConfigContextMixin, ContactsMixin
from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin
from netbox.graphql.types import OrganizationalObjectType, NetBoxObjectType
from virtualization import filtersets, models
Expand Down Expand Up @@ -38,7 +38,7 @@ class Meta:
filterset_class = filtersets.ClusterTypeFilterSet


class VirtualMachineType(ConfigContextMixin, NetBoxObjectType):
class VirtualMachineType(ConfigContextMixin, ContactsMixin, NetBoxObjectType):

class Meta:
model = models.VirtualMachine
Expand Down

0 comments on commit 7350950

Please sign in to comment.