mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
removing unnecessary call to object.__getattribute__
This commit is contained in:
parent
a596ace793
commit
d4c1922389
|
@ -1318,7 +1318,7 @@ class RecursiveField(Field):
|
||||||
# infinite recursion
|
# infinite recursion
|
||||||
if 'proxy' in d and name != 'fields' and name != 'proxy' and \
|
if 'proxy' in d and name != 'fields' and name != 'proxy' and \
|
||||||
not (name.startswith('__') and name.endswith('__')):
|
not (name.startswith('__') and name.endswith('__')):
|
||||||
return object.__getattribute__(d['proxy'], name)
|
return getattr(d['proxy'], name)
|
||||||
else:
|
else:
|
||||||
return object.__getattribute__(self, name)
|
return object.__getattribute__(self, name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user