Skip to content

Commit

Permalink
added allow_null for front and rear image on api #15184
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi1693 committed Feb 20, 2024
1 parent 25279d4 commit d6351b6
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)
rear_image = serializers.URLField(allow_null=True)
front_image = serializers.URLField(allow_null=True, required=False)
rear_image = serializers.URLField(allow_null=True, required=False)

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

0 comments on commit d6351b6

Please sign in to comment.