From 72859dd13b5ade9f9204ef1c37aafcbf9655085b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 30 Nov 2009 16:31:16 +0000 Subject: [PATCH] primaryjoin/secondaryjoin accept ColumnElement, docs, [ticket:1622] --- lib/sqlalchemy/orm/__init__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py index dc212539f9..e8e9b111d5 100644 --- a/lib/sqlalchemy/orm/__init__.py +++ b/lib/sqlalchemy/orm/__init__.py @@ -377,11 +377,11 @@ def relation(argument, secondary=None, **kwargs): use ``post_update`` to "break" the cycle. :param primaryjoin: - a ClauseElement that will be used as the primary join of this - child object against the parent object, or in a many-to-many - relationship the join of the primary object to the association - table. By default, this value is computed based on the foreign - key relationships of the parent and child tables (or association + a ColumnElement (i.e. WHERE criterion) that will be used as the primary + join of this child object against the parent object, or in a + many-to-many relationship the join of the primary object to the + association table. By default, this value is computed based on the + foreign key relationships of the parent and child tables (or association table). :param remote_side: @@ -389,9 +389,9 @@ def relation(argument, secondary=None, **kwargs): list of columns that form the "remote side" of the relationship. :param secondaryjoin: - a ClauseElement that will be used as the join of an association - table to the child object. By default, this value is computed - based on the foreign key relationships of the association and + a ColumnElement (i.e. WHERE criterion) that will be used as the join of + an association table to the child object. By default, this value is + computed based on the foreign key relationships of the association and child tables. :param single_parent=(True|False): -- 2.47.3