mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 21:10: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
|
||||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user