From: Gaƫtan de Menten Date: Fri, 9 May 2008 20:51:35 +0000 (+0000) Subject: same as r4710: X-Git-Tag: rel_0_4_6~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e06ca2464ae7f71b515832b9c84b01590d88c44;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git same as r4710: add target_fullname as a public property for _get_colspec --- diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 9a4bf4109c..11be70bdda 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -740,6 +740,8 @@ class ForeignKey(SchemaItem): else: return "%s.%s" % (self._colspec.table.name, self._colspec.key) + target_fullname = property(_get_colspec) + def references(self, table): """Return True if the given table is referenced by this ForeignKey."""