Kaydet (Commit) 807eff74 authored tarafından Anssi Kääriäinen's avatar Anssi Kääriäinen

Made use of PathInfo.direct flag in trim_joins

Refs #19385
üst 68985db4
......@@ -1445,8 +1445,7 @@ class Query(object):
the join.
"""
for info in reversed(path):
direct = info.join_field == info.from_field
if info.to_field == target and direct:
if info.to_field == target and info.direct:
target = info.from_field
self.unref_alias(joins.pop())
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment