9856 test fixes

This commit is contained in:
Arthur 2024-03-06 10:35:44 -08:00
parent aa7c00ec32
commit a5aad5359d
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ from typing import List
import strawberry import strawberry
import strawberry_django import strawberry_django
from circuits import models from dcim import models
from .types import * from .types import *

View File

@ -853,8 +853,7 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
) )
class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType): class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
_name: str _name: str
asn: BigInt time_zone: str | None
time_zone: str
@strawberry_django.field @strawberry_django.field
def prefixes(self) -> List[Annotated["PrefixType", strawberry.lazy('ipam.graphql.types')]]: def prefixes(self) -> List[Annotated["PrefixType", strawberry.lazy('ipam.graphql.types')]]:
@ -870,7 +869,7 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje
@strawberry_django.field @strawberry_django.field
def cabletermination_set(self) -> List[Annotated["CableTerminationType", strawberry.lazy('dcim.graphql.types')]]: 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 @strawberry_django.field
def powerpanel_set(self) -> List[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]: def powerpanel_set(self) -> List[Annotated["PowerPanelType", strawberry.lazy('dcim.graphql.types')]]:

View File

@ -2,7 +2,7 @@ from typing import List
import strawberry import strawberry
import strawberry_django import strawberry_django
from circuits import models from tenancy import models
from .types import * from .types import *

View File

@ -4,6 +4,7 @@ import strawberry_django
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group from django.contrib.auth.models import Group
from users import models
from .types import * from .types import *