1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added initial tests for cable connections

This commit is contained in:
Jeremy Stretch
2018-10-30 14:28:46 -04:00
parent 3420b5fbdf
commit 2fa1c81070
2 changed files with 371 additions and 9 deletions

View File

@@ -501,8 +501,8 @@ class CableSerializer(ValidatedModelSerializer):
termination_b_type = ContentTypeField()
termination_a = serializers.SerializerMethodField(read_only=True)
termination_b = serializers.SerializerMethodField(read_only=True)
status = ChoiceField(choices=CONNECTION_STATUS_CHOICES)
length_unit = ChoiceField(choices=LENGTH_UNIT_CHOICES)
status = ChoiceField(choices=CONNECTION_STATUS_CHOICES, required=False)
length_unit = ChoiceField(choices=LENGTH_UNIT_CHOICES, required=False)
class Meta:
model = Cable