mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Fix for nested attribute lookups where one is a callable
This commit is contained in:
parent
2fe6709769
commit
8579222cbd
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user