]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
primaryjoin/secondaryjoin accept ColumnElement, docs, [ticket:1622]
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2009 16:31:16 +0000 (16:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2009 16:31:16 +0000 (16:31 +0000)
lib/sqlalchemy/orm/__init__.py

index dc212539f96fe5aa7744e954771d712626c4c946..e8e9b111d5bdba34c0b983a58b76daabe82ea259 100644 (file)
@@ -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):