summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-02-10 23:39:06 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-02-10 23:39:06 +0000
commit1da55184e52ae6698ab02c368a43b0c037b17049 (patch)
treeff3c9b90f1a6aaa5e9b50a21f489568eee50f783 /lib/sqlalchemy/sql.py
parent648805f8b4d85aaaa221d2587e45259897d6b9f9 (diff)
downloadsqlalchemy-1da55184e52ae6698ab02c368a43b0c037b17049.tar.gz
- implemented foreign_keys argument on relation() [ticket:385]
- PropertyLoader figures out accurate remote_side collection based on foreign_keys, legacy foreignkey, primary/secondaryjoin/polymorphic - reworked lazyloader, sync to work straight off foreign_keys/ remote_side collections
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 259ef00b6..275fec343 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -642,7 +642,7 @@ class ColumnElement(Selectable, _CompareMixin):
may correspond to several TableClause-attached columns)."""
primary_key = property(lambda self:getattr(self, '_primary_key', False), doc="primary key flag. indicates if this Column represents part or whole of a primary key.")
- foreign_keys = property(lambda self:getattr(self, '_foreign_keys', []), doc="foreign key accessor. points to a ForeignKey object which represents a Foreign Key placed on this column's ultimate ancestor.")
+ foreign_keys = property(lambda self:getattr(self, '_foreign_keys', []), doc="foreign key accessor. points to a list of ForeignKey objects which represents a Foreign Key placed on this column's ultimate ancestor.")
columns = property(lambda self:[self], doc="Columns accessor which just returns self, to provide compatibility with Selectable objects.")
def _one_fkey(self):
if len(self._foreign_keys):