aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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