mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-25 23:50:01 +03:00
Merge 943bc073d9
into 0fc5a49a11
This commit is contained in:
commit
bbc031eeb6
|
@ -182,7 +182,7 @@ class Serializer(object):
|
|||
else:
|
||||
depth = self.depth - 1
|
||||
|
||||
if any([obj is elem for elem in self.stack]):
|
||||
if obj in self.stack:
|
||||
return self.serialize_recursion(obj)
|
||||
else:
|
||||
stack = self.stack[:]
|
||||
|
|
Loading…
Reference in New Issue
Block a user