Arthur 1 год назад
Родитель
Сommit
a5aad5359d

+ 1 - 1
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 *
 
 

+ 2 - 3
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')]]:

+ 1 - 1
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 *
 
 

+ 1 - 0
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 *