mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-11 11:22:15 -04:00
Fixed a regression in the examples/dogpile_caching example
which was due to the change in #2614.
This commit is contained in:
Vendored
+6
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user