mirror of
https://github.com/django/django.git
synced 2025-12-03 16:47:26 +00:00
parent
68985db482
commit
807eff7439
1 changed files with 1 additions and 2 deletions
|
|
@ -1445,8 +1445,7 @@ class Query(object):
|
||||||
the join.
|
the join.
|
||||||
"""
|
"""
|
||||||
for info in reversed(path):
|
for info in reversed(path):
|
||||||
direct = info.join_field == info.from_field
|
if info.to_field == target and info.direct:
|
||||||
if info.to_field == target and direct:
|
|
||||||
target = info.from_field
|
target = info.from_field
|
||||||
self.unref_alias(joins.pop())
|
self.unref_alias(joins.pop())
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue