mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add journal_entries to Graphene object types for all primary models
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from ipam.graphql.mixins import IPAddressesMixin, VLANGroupsMixin
|
||||
from virtualization import filtersets, models
|
||||
from netbox.graphql.types import ObjectType, TaggedObjectType
|
||||
from netbox.graphql.types import ObjectType, PrimaryObjectType, TaggedObjectType
|
||||
|
||||
__all__ = (
|
||||
'ClusterType',
|
||||
@@ -11,7 +11,7 @@ __all__ = (
|
||||
)
|
||||
|
||||
|
||||
class ClusterType(VLANGroupsMixin, TaggedObjectType):
|
||||
class ClusterType(VLANGroupsMixin, PrimaryObjectType):
|
||||
|
||||
class Meta:
|
||||
model = models.Cluster
|
||||
@@ -35,7 +35,7 @@ class ClusterTypeType(ObjectType):
|
||||
filterset_class = filtersets.ClusterTypeFilterSet
|
||||
|
||||
|
||||
class VirtualMachineType(TaggedObjectType):
|
||||
class VirtualMachineType(PrimaryObjectType):
|
||||
|
||||
class Meta:
|
||||
model = models.VirtualMachine
|
||||
|
Reference in New Issue
Block a user