mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 19:19:22 -06:00
Set ImageAttachmentSerializer.image_width and image_height to read_only
This commit is contained in:
parent
8903e4649c
commit
85f8364cd7
@ -19,6 +19,8 @@ class ImageAttachmentSerializer(ValidatedModelSerializer):
|
|||||||
queryset=ObjectType.objects.all()
|
queryset=ObjectType.objects.all()
|
||||||
)
|
)
|
||||||
parent = serializers.SerializerMethodField(read_only=True)
|
parent = serializers.SerializerMethodField(read_only=True)
|
||||||
|
image_width = serializers.IntegerField(read_only=True)
|
||||||
|
image_height = serializers.IntegerField(read_only=True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = ImageAttachment
|
model = ImageAttachment
|
||||||
|
Loading…
Reference in New Issue
Block a user