mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 15:37:50 +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): |             except (KeyError, TypeError, AttributeError): | ||||||
|                 raise exc |                 raise exc | ||||||
|         if is_simple_callable(instance): |         if is_simple_callable(instance): | ||||||
|             return instance() |             instance = instance() | ||||||
|     return instance |     return instance | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user