]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix a get call here, we should figure this out since we dont want
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Mar 2015 17:34:43 +0000 (13:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 12 Mar 2015 17:34:43 +0000 (13:34 -0400)
to be using getattr

lib/sqlalchemy/orm/query.py

index 05349cf0bf3c640a8fd97f2f3bcc753fbdee6cc5..36180e8d5b5a48ca496068202b37f8f02892f1b6 100644 (file)
@@ -3541,7 +3541,7 @@ class _ColumnEntity(_QueryEntity):
             attributes.QueryableAttribute,
             interfaces.PropComparator
         )):
-            _entity = column._parententity
+            _entity = getattr(column, '_parententity', None)
             if _entity is not None:
                 search_entities = False
             self._label_name = column.key