mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
flake ugh
This commit is contained in:
parent
09edaf50ed
commit
cedfe4f330
|
@ -1216,7 +1216,7 @@ class RecursiveField(Field):
|
|||
class ListSerializer(self):
|
||||
next = RecursiveField()
|
||||
"""
|
||||
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
kwargz = {'required': False}
|
||||
kwargz.update(kwargs)
|
||||
|
@ -1228,7 +1228,7 @@ class RecursiveField(Field):
|
|||
return self.parent.parent
|
||||
else:
|
||||
return self.parent
|
||||
|
||||
|
||||
def to_representation(self, value):
|
||||
return self._get_parent().to_representation(value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user