Skip to content

Commit

Permalink
Fixes #2272: Allow subdevice_role to be null on DeviceTypeSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 31, 2018
1 parent 27e8841 commit d4ccaf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox/dcim/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ class Meta:


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

class Meta:
model = DeviceType
Expand Down

0 comments on commit d4ccaf6

Please sign in to comment.