Fix for nested attribute lookups where one is a callable

This commit is contained in:
Tom Christie 2014-11-27 15:14:11 +00:00
parent 2fe6709769
commit 8579222cbd

View File

@ -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