@@ -54,13 +54,12 @@ class CircuitCircuitTerminationSerializer(WritableNestedSerializer):
54
54
)
55
55
termination_id = serializers .IntegerField (allow_null = True , required = False , default = None )
56
56
termination = serializers .SerializerMethodField (read_only = True )
57
- provider_network = ProviderNetworkSerializer (nested = True , allow_null = True )
58
57
59
58
class Meta :
60
59
model = CircuitTermination
61
60
fields = [
62
- 'id' , 'url' , 'display_url' , 'display' , 'termination_type' , 'termination_id' , 'termination' ,
63
- 'provider_network' , 'port_speed' , ' upstream_speed' , 'xconnect_id' , 'description' ,
61
+ 'id' , 'url' , 'display_url' , 'display' , 'termination_type' , 'termination_id' , 'termination' , 'port_speed' ,
62
+ 'upstream_speed' , 'xconnect_id' , 'description' ,
64
63
]
65
64
66
65
@extend_schema_field (serializers .JSONField (allow_null = True ))
@@ -133,15 +132,14 @@ class CircuitTerminationSerializer(NetBoxModelSerializer, CabledObjectSerializer
133
132
)
134
133
termination_id = serializers .IntegerField (allow_null = True , required = False , default = None )
135
134
termination = serializers .SerializerMethodField (read_only = True )
136
- provider_network = ProviderNetworkSerializer (nested = True , required = False , allow_null = True )
137
135
138
136
class Meta :
139
137
model = CircuitTermination
140
138
fields = [
141
139
'id' , 'url' , 'display_url' , 'display' , 'circuit' , 'term_side' , 'termination_type' , 'termination_id' ,
142
- 'termination' , 'provider_network' , ' port_speed' , 'upstream_speed' , 'xconnect_id' , 'pp_info' , 'description' ,
143
- 'mark_connected' , ' cable' , 'cable_end' , 'link_peers' , 'link_peers_type' , 'tags' , 'custom_fields' , 'created' ,
144
- 'last_updated' , ' _occupied' ,
140
+ 'termination' , 'port_speed' , 'upstream_speed' , 'xconnect_id' , 'pp_info' , 'description' , 'mark_connected ' ,
141
+ 'cable' , 'cable_end' , 'link_peers' , 'link_peers_type' , 'tags' , 'custom_fields' , 'created' , 'last_updated ' ,
142
+ '_occupied' ,
145
143
]
146
144
brief_fields = ('id' , 'url' , 'display' , 'circuit' , 'term_side' , 'description' , 'cable' , '_occupied' )
147
145
0 commit comments