Commit 8579222c by Tom Christie

Fix for nested attribute lookups where one is a callable

parent 2fe67097
......@@ -69,7 +69,7 @@ def get_attribute(instance, attrs):
except (KeyError, TypeError, AttributeError):
raise exc
if is_simple_callable(instance):
return instance()
instance = instance()
return instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment