Expose provider field
@@ -290,7 +290,8 @@ class ImageSerializer(serializers.Serializer):
)
url = serializers.URLField()
thumbnail = serializers.SerializerMethodField()
- source = serializers.CharField(required=False, source='provider')
+ provider = serializers.CharField(required=False)
+ source = serializers.CharField(required=False)
license = serializers.SerializerMethodField()
license_version = serializers.CharField(required=False)
license_url = serializers.SerializerMethodField()
