diff options
| author | Tom Christie | 2014-11-27 15:14:11 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-11-27 15:14:11 +0000 |
| commit | 8579222cbdff98aef50e244e179b7c32a76ce8ad (patch) | |
| tree | 2eb26677212b0ad7e8f7d623fa51f73d787c2ef4 /rest_framework/fields.py | |
| parent | 2fe6709769048944127c8c48af4364101914e690 (diff) | |
| download | django-rest-framework-8579222cbdff98aef50e244e179b7c32a76ce8ad.tar.bz2 | |
Fix for nested attribute lookups where one is a callable
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 |
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 |
