]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the mechanics of "backref" have been fully merged into the
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Oct 2009 22:11:06 +0000 (22:11 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Oct 2009 22:11:06 +0000 (22:11 +0000)
commitbf207ae1b678f2aa45a2bfa6b8cb3f97c3e4af56
tree45a3b2a92cc15a117ce88491f48e3f6e76540ce2
parent9f2e94fc2c5f262c9339f1040b9bb208a45dc401
- the mechanics of "backref" have been fully merged into the
finer grained "back_populates" system, and take place entirely
within the _generate_backref() method of RelationProperty.  This
makes the initialization procedure of RelationProperty
simpler and allows easier propagation of settings (such as from
subclasses of RelationProperty) into the reverse reference.
The internal BackRef() is gone and backref() returns a plain
tuple that is understood by RelationProperty.
CHANGES
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/strategies.py