From a5aad5359dfac16fd5dffc9e6f8dca1c47ce8404 Mon Sep 17 00:00:00 2001 From: Arthur Date: Wed, 6 Mar 2024 10:35:44 -0800 Subject: [PATCH] 9856 test fixes --- netbox/dcim/graphql/schema.py | 2 +- netbox/dcim/graphql/types.py | 5 ++--- netbox/tenancy/graphql/schema.py | 2 +- netbox/users/graphql/schema.py | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/netbox/dcim/graphql/schema.py b/netbox/dcim/graphql/schema.py index 9dc3388b7..4a895c3a7 100644 --- a/netbox/dcim/graphql/schema.py +++ b/netbox/dcim/graphql/schema.py @@ -2,7 +2,7 @@ from typing import List import strawberry import strawberry_django -from circuits import models +from dcim import models from .types import * diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 06d3ec425..97b4ab2f6 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -853,8 +853,7 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType): ) class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType): _name: str - asn: BigInt - time_zone: str + time_zone: str | None @strawberry_django.field def prefixes(self) -> List[Annotated["PrefixType", strawberry.lazy('ipam.graphql.types')]]: @@ -870,7 +869,7 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje @strawberry_django.field def cabletermination_set(self) -> List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]: - return self.cabletermiantion_set.all() + return self.cabletermination_set.all() @strawberry_django.field def powerpanel_set(self) -> List[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]: diff --git a/netbox/tenancy/graphql/schema.py b/netbox/tenancy/graphql/schema.py index c5dc63a7b..80e77cc82 100644 --- a/netbox/tenancy/graphql/schema.py +++ b/netbox/tenancy/graphql/schema.py @@ -2,7 +2,7 @@ from typing import List import strawberry import strawberry_django -from circuits import models +from tenancy import models from .types import * diff --git a/netbox/users/graphql/schema.py b/netbox/users/graphql/schema.py index c9a8211d4..66a9e8c93 100644 --- a/netbox/users/graphql/schema.py +++ b/netbox/users/graphql/schema.py @@ -4,6 +4,7 @@ import strawberry_django from django.contrib.auth import get_user_model from django.contrib.auth.models import Group +from users import models from .types import *