Merge pull request #268 from phobologic/master

Stop backwards recursion with reverse relationships
This commit is contained in:
Tom Christie 2012-09-19 08:17:28 -07:00
commit 8d92f77fc2

View File

@ -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[:]