contentful.py icon indicating copy to clipboard operation
contentful.py copied to clipboard

Locale is lost when using Link.resolve()

Open mikeroll opened this issue 5 years ago • 0 comments

# "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.

mikeroll avatar Feb 13 '20 12:02 mikeroll