Skip to content
Commit 3dcd435a authored by Anssi Kääriäinen's avatar Anssi Kääriäinen
Browse files

Fixed #19500 -- Solved a regression in join reuse

The ORM didn't reuse joins for direct foreign key traversals when using
chained filters. For example:
    qs.filter(fk__somefield=1).filter(fk__somefield=2))
produced two joins.

As a bonus, reverse onetoone filters can now reuse joins correctly

The regression was caused by the join() method refactor in commit
68847135

Thanks for Simon Charette for spotting some issues with the first draft
of the patch.
parent c04c03da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment