mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
removed unnecessary bind on the recursive field
This commit is contained in:
parent
25fee8e07b
commit
67ed7d7933
|
@ -1302,8 +1302,6 @@ class RecursiveField(Field):
|
||||||
super(RecursiveField, self).__init__(**field_kwargs)
|
super(RecursiveField, self).__init__(**field_kwargs)
|
||||||
|
|
||||||
def bind(self, field_name, parent):
|
def bind(self, field_name, parent):
|
||||||
super(RecursiveField, self).bind(field_name, parent)
|
|
||||||
|
|
||||||
real_dict = object.__getattribute__(self, '__dict__')
|
real_dict = object.__getattribute__(self, '__dict__')
|
||||||
|
|
||||||
if hasattr(parent, 'child') and parent.child is self:
|
if hasattr(parent, 'child') and parent.child is self:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user