Set ImageAttachmentSerializer.image_width and image_height to read_only

This commit is contained in:
Brian Tiemann 2024-08-21 15:05:27 -04:00 committed by Jeremy Stretch
parent 8903e4649c
commit 85f8364cd7

View File

@ -19,6 +19,8 @@ class ImageAttachmentSerializer(ValidatedModelSerializer):
queryset=ObjectType.objects.all()
)
parent = serializers.SerializerMethodField(read_only=True)
image_width = serializers.IntegerField(read_only=True)
image_height = serializers.IntegerField(read_only=True)
class Meta:
model = ImageAttachment