Skip to content

0.87.1

Choose a tag to compare

@botberry botberry released this 26 Aug 17:14
· 4 commits to main since this release
1361d57

Fix the query optimizer dropping a manually applied select_related from the
only() mask when another field on the same model shares its name as a
prefix without a __ boundary (e.g. company vs company_branch). This
previously made Django raise FieldError: cannot be both deferred and traversed using select_related at the same time whenever only the longer
sibling was selected in the query.

This release was contributed by @cjcontreras in #945