Fixed a regression in the examples/dogpile_caching example

which was due to the change in #2614.
This commit is contained in:
Mike Bayer
2013-01-08 10:59:26 -05:00
parent 06ddce3215
commit 7f3cefeba8
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -6,6 +6,12 @@
.. changelog::
:version: 0.8.0
.. change::
:tags: examples, bug
Fixed a regression in the examples/dogpile_caching example
which was due to the change in :ticket:`2614`.
.. change::
:tags: orm, bug
:tickets: 2640
+2 -1
View File
@@ -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: