diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-25 14:29:48 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-25 14:29:48 -0400 |
commit | e1d03569686f9f574765ef90b9251d54d2b935c4 (patch) | |
tree | 3fc207b7a3ede1b535dbd7dc529e2c67424bb09d | |
parent | 0ed0bdb2ae92e4589a6e90e789b3645c555c770b (diff) | |
download | sqlalchemy-e1d03569686f9f574765ef90b9251d54d2b935c4.tar.gz |
we can always adapt to right also. suppose if right
were an alias of a table, should add tests for that.
-rw-r--r-- | lib/sqlalchemy/orm/util.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index a594af259..35cb0bdf5 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -876,11 +876,7 @@ class _ORMJoin(expression.Join): left_orm_info = getattr(left, '_joined_from_info', left_info) right_info = inspection.inspect(right) - - if getattr(right_info, 'is_aliased_class', False): - adapt_to = right_info.selectable - else: - adapt_to = None + adapt_to = right_info.selectable self._joined_from_info = right_info |