Skip to content

Commit

Permalink
Follow-up to #2272: subdevice_role should not be required
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Aug 1, 2018
1 parent 5f7e21f commit 475e0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class Meta:


class WritableDeviceTypeSerializer(CustomFieldModelSerializer):
subdevice_role = ChoiceFieldSerializer(choices=SUBDEVICE_ROLE_CHOICES, allow_null=True)
subdevice_role = ChoiceFieldSerializer(choices=SUBDEVICE_ROLE_CHOICES, allow_null=True, required=False)

class Meta:
model = DeviceType
Expand Down

0 comments on commit 475e0e6

Please sign in to comment.