From 7f3cefeba8d63ceb15dcffa358c2ffdebee16ab1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 8 Jan 2013 10:59:26 -0500 Subject: Fixed a regression in the examples/dogpile_caching example which was due to the change in #2614. --- examples/dogpile_caching/caching_query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/dogpile_caching/caching_query.py b/examples/dogpile_caching/caching_query.py index fb532fa63..9a705cf31 100644 --- a/examples/dogpile_caching/caching_query.py +++ b/examples/dogpile_caching/caching_query.py @@ -233,7 +233,8 @@ class RelationshipCache(MapperOption): """ if query._current_path: - mapper, key = query._current_path[-2:] + mapper, prop = query._current_path[-2:] + key = prop.key for cls in mapper.class_.__mro__: if (cls, key) in self._relationship_options: -- cgit v1.2.1