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

Fixed #19870 -- Regression in select_related in inheritance cases

There was a regression in case two models inherited the same parent,
and one contained a foreign key to other. When select_related travelled
the foreign key the other model reused the parent join made by the
first model. This was likely caused by Query.join_parent_model()
addition in commit 68985db4.

Thanks to Trac alias loic84 for report & tests.
parent 64911896
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