mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 18:13:57 +03:00
Fixing Issue #265.
https://github.com/tomchristie/django-rest-framework/issues/265
This commit is contained in:
parent
0fc5a49a11
commit
943bc073d9
|
@ -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