diff options
Diffstat (limited to 'examples/beaker_caching/meta.py')
-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): |