summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-11-25 23:33:47 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-11-25 23:33:47 -0500
commit79c0aa6b7320f94399634d02997faacbb6ced1d7 (patch)
treecf08aca6aeea4e08f113efa04b12f0046e86bf23 /lib/sqlalchemy/sql/schema.py
parentee38bcdec26d217dfeedc4f75200be44a388af78 (diff)
downloadsqlalchemy-79c0aa6b7320f94399634d02997faacbb6ced1d7.tar.gz
- use self.parent, not table here as there's an attributeerror
trap for self.table that behaves differently in py3k
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
-rw-r--r--lib/sqlalchemy/sql/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 8b2eb12f0..4093d7115 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -2647,7 +2647,7 @@ class ForeignKeyConstraint(ColumnCollectionConstraint):
.. versionadded:: 1.0.0
"""
- if hasattr(self, 'table'):
+ if hasattr(self, "parent"):
return self.columns.keys()
else:
return [