Skip to content

Commit

Permalink
Fixes #15356: Fix assignment of front & rear images to device types v…
Browse files Browse the repository at this point in the history
…ia REST API
  • Loading branch information
jeremystretch committed Mar 13, 2024
1 parent 7350950 commit 7ac2169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/dcim/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ class DeviceTypeSerializer(NetBoxModelSerializer):
airflow = ChoiceField(choices=DeviceAirflowChoices, allow_blank=True, required=False, allow_null=True)
weight_unit = ChoiceField(choices=WeightUnitChoices, allow_blank=True, required=False, allow_null=True)
device_count = serializers.IntegerField(read_only=True)
front_image = serializers.URLField(allow_null=True, required=False)
rear_image = serializers.URLField(allow_null=True, required=False)
front_image = serializers.ImageField(required=False, allow_null=True)
rear_image = serializers.ImageField(required=False, allow_null=True)

# Counter fields
console_port_template_count = serializers.IntegerField(read_only=True)
Expand Down

0 comments on commit 7ac2169

Please sign in to comment.