contentful / contentful.py

Python client for the Contentful Content Delivery API https://www.contentful.com/developers/documentation/content-delivery-api/
MIT License
45 stars 39 forks source link

Locale is lost when using Link.resolve() #53

Open mikeroll opened 4 years ago

mikeroll commented 4 years ago
# "include": 0 is to keep this example shorter, the bug affects any include level
>>> question = client.entry("1dBxUVU0IY2O5gQVCINMJB", {"locale": "pt", "include": 0})
>>> question.locale
'pt'
>>> question.group
<Link[Entry] id='2znJjza39lwrgkTOPFDSh4'>
>>> question.group.resolve().locale
'en'

I would expect the initially requested locale to be preserved when resolving linked entities.