From d4c192238980500de642971c9d1746a2fb5a6b53 Mon Sep 17 00:00:00 2001 From: Warren Jin Date: Tue, 27 Jan 2015 22:47:53 -0500 Subject: [PATCH] removing unnecessary call to object.__getattribute__ --- rest_framework/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 4c31cd838..3697aa998 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -1318,7 +1318,7 @@ class RecursiveField(Field): # infinite recursion if 'proxy' in d and name != 'fields' and name != 'proxy' and \ not (name.startswith('__') and name.endswith('__')): - return object.__getattribute__(d['proxy'], name) + return getattr(d['proxy'], name) else: return object.__getattribute__(self, name)