瀏覽代碼

9856 fix tests

Arthur 2 年之前
父節點
當前提交
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