Arthur 1 год назад
Родитель
Сommit
d6fd0b88af
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      netbox/extras/graphql/types.py
  2. 1 1
      netbox/tenancy/graphql/types.py

+ 1 - 1
netbox/extras/graphql/types.py

@@ -123,7 +123,7 @@ class ConfigTemplateType(TagsMixin, ObjectType):
     filters=CustomFieldFilter
 )
 class CustomFieldType(ObjectType):
-    object_type: Annotated["ContentTypeType", strawberry.lazy('netbox.graphql.types')] | None
+    related_object_type: Annotated["ContentTypeType", strawberry.lazy('netbox.graphql.types')] | None
     choice_set: Annotated["CustomFieldChoiceSetType", strawberry.lazy('extras.graphql.types')] | None
 
 

+ 1 - 1
netbox/tenancy/graphql/types.py

@@ -189,6 +189,6 @@ class ContactGroupType(OrganizationalObjectType):
     filters=ContactAssignmentFilter
 )
 class ContactAssignmentType(CustomFieldsMixin, TagsMixin, BaseObjectType):
-    content_type: Annotated["ContentTypeType", strawberry.lazy('netbox.graphql.types')] | None
+    object_type: Annotated["ContentTypeType", strawberry.lazy('netbox.graphql.types')] | None
     contact: Annotated["ContactType", strawberry.lazy('tenancy.graphql.types')] | None
     role: Annotated["ContactRoleType", strawberry.lazy('tenancy.graphql.types')] | None