Просмотр исходного кода

Added the cable -> CableType-Annotation in CableTerminationType.

Kay Schroeder 1 год назад
Родитель
Сommit
382e246b2c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/dcim/graphql/types.py

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

@@ -116,7 +116,7 @@ class ModularComponentTemplateType(ComponentTemplateType):
     filters=CableTerminationFilter
 )
 class CableTerminationType(NetBoxObjectType):
-
+    cable: Annotated["CableType", strawberry.lazy('dcim.graphql.types')] | None
     termination: Annotated[Union[
         Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')],
         Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')],