aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2014-11-27 15:14:11 +0000
committerTom Christie2014-11-27 15:14:11 +0000
commit8579222cbdff98aef50e244e179b7c32a76ce8ad (patch)
tree2eb26677212b0ad7e8f7d623fa51f73d787c2ef4
parent2fe6709769048944127c8c48af4364101914e690 (diff)
downloaddjango-rest-framework-8579222cbdff98aef50e244e179b7c32a76ce8ad.tar.bz2
Fix for nested attribute lookups where one is a callable
-rw-r--r--rest_framework/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index ca770f77..2e2a68b8 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -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