diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-08 05:15:18 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-08 05:15:18 +0000 |
| commit | c73391c34c90fde517c87ff4f5cc181d060ddf95 (patch) | |
| tree | 9d2e49f8fa51b0a8caaa8989ec4509bc5658df90 /lib | |
| parent | 29d4335b73b2b81e941050f0395aa4fb4e58cd39 (diff) | |
| download | sqlalchemy-c73391c34c90fde517c87ff4f5cc181d060ddf95.tar.gz | |
even better...
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index ee05625a9..dd470f358 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -1064,7 +1064,8 @@ class ClassManager(dict): if isinstance(meth, types.FunctionType) and \ hasattr(meth, '__sa_reconstitute__') and \ hasattr(getattr(class_, key), '__sa_reconstitute__'): - self.events.add_listener('on_load', meth) + self.events.add_listener('on_load', getattr(class_, key)) + break def instantiable(self, boolean): # experiment, probably won't stay in this form |
