Skip to content

Commit

Permalink
fix thumbnail as read only in API
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 12, 2024
1 parent 6741664 commit b9beaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/project/api/serializers/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_large(self, obj):


class MediaSerializer(serializers.ModelSerializer):
thumbnails = ThumbnailSerializer(source="*")
thumbnails = ThumbnailSerializer(source="*", read_only=True)

class Meta:
model = Media
Expand Down

0 comments on commit b9beaf6

Please sign in to comment.