summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/activemapper.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-08-17 19:13:12 +0000
committerJason Kirtland <jek@discorporate.us>2007-08-17 19:13:12 +0000
commit3e3e6d0c197df8d40bb33c2fb304472879857439 (patch)
treedd4b79d7011f5ede75e91980c5d5d9bbf9a2e5fa /lib/sqlalchemy/ext/activemapper.py
parent6d0d482cdf913d520c53c0b8d31aefcaf8bf9336 (diff)
downloadsqlalchemy-3e3e6d0c197df8d40bb33c2fb304472879857439.tar.gz
update activemapper backrefs for r3340
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r--lib/sqlalchemy/ext/activemapper.py3
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