removing unnecessary call to object.__getattribute__

This commit is contained in:
Warren Jin 2015-01-27 22:47:53 -05:00
parent a596ace793
commit d4c1922389

View File

@ -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)