Commit 11147ce1 by Tom Christie

Don't bork if request attribute is not set.

parent c124585d
...@@ -180,7 +180,7 @@ class Serializer(object): ...@@ -180,7 +180,7 @@ class Serializer(object):
stack.append(obj) stack.append(obj)
return related_serializer(depth=depth, stack=stack).serialize( return related_serializer(depth=depth, stack=stack).serialize(
obj, request=self.request) obj, request=getattr(self, 'request', None))
def serialize_max_depth(self, obj): def serialize_max_depth(self, obj):
""" """
......
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