This corresponds to when a field in Contentful looks like this (added but not uploaded yet):
I think the correct behavior would be to return a resources.Asset but without a url or mimeType property. If this sounds right I can send a PR to update the behavior. Thanks for this library!
Seems like if a user presses "Add Asset" but doesn't upload a file, serialization dies with a
KeyError
on a key namedfile
here:https://github.com/contentful-labs/contentful.py/blob/master/contentful/cda/serialization.py#L111
This corresponds to when a field in Contentful looks like this (added but not uploaded yet):
I think the correct behavior would be to return a
resources.Asset
but without aurl
ormimeType
property. If this sounds right I can send a PR to update the behavior. Thanks for this library!