From c34bf19ddce08fcf0bc8fd45b79a06024a30f250 Mon Sep 17 00:00:00 2001 From: corubba Date: Thu, 1 May 2025 20:22:00 +0200 Subject: [PATCH] Fixes #19361: Fix wrong graphql field data-types --- netbox/dcim/graphql/types.py | 10 +++++----- netbox/vpn/graphql/types.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 7f801c01b..d0818a738 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -541,10 +541,10 @@ class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, Organi class ManufacturerType(OrganizationalObjectType, ContactsMixin): platforms: List[Annotated["PlatformType", strawberry.lazy('dcim.graphql.types')]] - device_types: List[Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')]] + device_types: List[Annotated["DeviceTypeType", strawberry.lazy('dcim.graphql.types')]] inventory_item_templates: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]] inventory_items: List[Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')]] - module_types: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]] + module_types: List[Annotated["ModuleTypeType", strawberry.lazy('dcim.graphql.types')]] @strawberry_django.type( @@ -617,11 +617,11 @@ class ModuleTypeType(NetBoxObjectType): frontporttemplates: List[Annotated["FrontPortTemplateType", strawberry.lazy('dcim.graphql.types')]] consoleserverporttemplates: List[Annotated["ConsoleServerPortTemplateType", strawberry.lazy('dcim.graphql.types')]] interfacetemplates: List[Annotated["InterfaceTemplateType", strawberry.lazy('dcim.graphql.types')]] - powerporttemplates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]] + powerporttemplates: List[Annotated["PowerPortTemplateType", strawberry.lazy('dcim.graphql.types')]] poweroutlettemplates: List[Annotated["PowerOutletTemplateType", strawberry.lazy('dcim.graphql.types')]] rearporttemplates: List[Annotated["RearPortTemplateType", strawberry.lazy('dcim.graphql.types')]] - instances: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]] - consoleporttemplates: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]] + instances: List[Annotated["ModuleType", strawberry.lazy('dcim.graphql.types')]] + consoleporttemplates: List[Annotated["ConsolePortTemplateType", strawberry.lazy('dcim.graphql.types')]] @strawberry_django.type( diff --git a/netbox/vpn/graphql/types.py b/netbox/vpn/graphql/types.py index eeb050819..e1b46f9c4 100644 --- a/netbox/vpn/graphql/types.py +++ b/netbox/vpn/graphql/types.py @@ -86,7 +86,7 @@ class IKEProposalType(OrganizationalObjectType): class IKEPolicyType(OrganizationalObjectType): proposals: List[Annotated["IKEProposalType", strawberry.lazy('vpn.graphql.types')]] - ipsec_profiles: List[Annotated["IPSecProposalType", strawberry.lazy('vpn.graphql.types')]] + ipsec_profiles: List[Annotated["IPSecProfileType", strawberry.lazy('vpn.graphql.types')]] @strawberry_django.type(