From: Gaƫtan de Menten Date: Fri, 9 May 2008 20:49:32 +0000 (+0000) Subject: add target_fullname as a public property for _get_colspec X-Git-Tag: rel_0_5beta1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6935add67eab74a2e64d86667059f7f0e476a6a5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add target_fullname as a public property for _get_colspec --- diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 1f0b52ace6..6d1193494b 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -748,6 +748,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.""" return table.corresponding_column(self.column) is not None