diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-17 19:13:12 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-17 19:13:12 +0000 |
commit | 3e3e6d0c197df8d40bb33c2fb304472879857439 (patch) | |
tree | dd4b79d7011f5ede75e91980c5d5d9bbf9a2e5fa /lib/sqlalchemy/ext/activemapper.py | |
parent | 6d0d482cdf913d520c53c0b8d31aefcaf8bf9336 (diff) | |
download | sqlalchemy-3e3e6d0c197df8d40bb33c2fb304472879857439.tar.gz |
update activemapper backrefs for r3340
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/activemapper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/activemapper.py b/lib/sqlalchemy/ext/activemapper.py index fa32a5fc3..9c4b29b22 100644 --- a/lib/sqlalchemy/ext/activemapper.py +++ b/lib/sqlalchemy/ext/activemapper.py @@ -88,7 +88,8 @@ class relationship(object): relclass = ActiveMapperMeta.classes[self.classname] if klass.__name__ == self.classname: - br_fkey = getattr(relclass.c, self.colname) + class_mapper(relclass).compile() + br_fkey = relclass.c[self.colname] else: br_fkey = None |