Commit 537fa19b by Alen Mujezinovic

Whoops. Adding the .parent attribute to the Serializer class broke

getattr(self,'parent',self). This fixes it.
parent 0a57cf98
...@@ -138,7 +138,7 @@ class Serializer(object): ...@@ -138,7 +138,7 @@ class Serializer(object):
if isinstance(info, (list, tuple)): if isinstance(info, (list, tuple)):
class OnTheFlySerializer(self.__class__): class OnTheFlySerializer(self.__class__):
fields = info fields = info
parent = getattr(self, 'parent', self) parent = getattr(self, 'parent') or self
return OnTheFlySerializer return OnTheFlySerializer
# If an element in `fields` is a 2-tuple of (str, Serializer) # If an element in `fields` is a 2-tuple of (str, Serializer)
......
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