Commit 8d92f77f by Tom Christie

Merge pull request #268 from phobologic/master

Stop backwards recursion with reverse relationships
parents 0fc5a49a 943bc073
...@@ -182,7 +182,7 @@ class Serializer(object): ...@@ -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[:]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment