mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +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:
|
else:
|
||||||
depth = self.depth - 1
|
depth = self.depth - 1
|
||||||
|
|
||||||
if any([obj is elem for elem in self.stack]):
|
if obj in self.stack:
|
||||||
return self.serialize_recursion(obj)
|
return self.serialize_recursion(obj)
|
||||||
else:
|
else:
|
||||||
stack = self.stack[:]
|
stack = self.stack[:]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user