diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-05-21 18:27:21 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-05-21 18:27:21 +0000 |
| commit | 3d17498c1d8c28c4afbd13c545b05060c8ab1e49 (patch) | |
| tree | 58f13ea866a43fd0f83ab24a6dec5b966b530b32 /lib/sqlalchemy/ext/associationproxy.py | |
| parent | d1c80500c5f125f250441ec9299f63d73b1c3d58 (diff) | |
| download | sqlalchemy-3d17498c1d8c28c4afbd13c545b05060c8ab1e49.tar.gz | |
- Another namespace cleanup tweak, why not.
Diffstat (limited to 'lib/sqlalchemy/ext/associationproxy.py')
| -rw-r--r-- | lib/sqlalchemy/ext/associationproxy.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py index 3324b0d95..b16004511 100644 --- a/lib/sqlalchemy/ext/associationproxy.py +++ b/lib/sqlalchemy/ext/associationproxy.py @@ -126,9 +126,10 @@ class AssociationProxy(object): return (orm.class_mapper(self.owning_class). get_property(self.target_collection)) - def _target_class(self): + def target_class(self): + """The class the proxy is attached to.""" return self._get_property().mapper.class_ - target_class = property(_target_class) + target_class = property(target_class) def _target_is_scalar(self): return not self._get_property().uselist |
