diff options
-rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 7a220f949..9a43c404d 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -761,7 +761,7 @@ class Join(FromClause): "Can't find any foreign key relationships " "between '%s' and '%s'.%s" % (a.description, b.description, hint)) - crit = [(x == y) for x, y in constraints.values()[0]] + crit = [(x == y) for x, y in list(constraints.values())[0]] if len(crit) == 1: return (crit[0]) else: |