diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-01-21 17:40:41 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-01-21 17:40:41 +0000 |
commit | bf6c88fe2340bd1e7c9d4b5c897b1fa0938ae2e4 (patch) | |
tree | 2279f306d3b3024a94793748e0febf7abeaede51 | |
parent | d6aa10d7e96147a4f9954fce009770e6632e561b (diff) | |
download | sqlalchemy-bf6c88fe2340bd1e7c9d4b5c897b1fa0938ae2e4.tar.gz |
use issubclass here, allows lazy loads from a subclass to hit a loader that was configured on base
-rw-r--r-- | examples/beaker_caching/meta.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/beaker_caching/meta.py b/examples/beaker_caching/meta.py index ba2ef4b98..dd802fcd8 100644 --- a/examples/beaker_caching/meta.py +++ b/examples/beaker_caching/meta.py @@ -175,7 +175,7 @@ class FromCache(MapperOption): """ if self.cls_ is not None and query._current_path: mapper, key = query._current_path[-2:] - if self.cls_ is mapper.class_ and key == self.propname: + if issubclass(mapper.class_, self.cls_) and key == self.propname: self._set_query_cache(query) def process_query(self, query): |