Gotta love dynamic languages

This commit is contained in:
Tom Christie 2012-02-21 13:38:21 +00:00
parent 54a02c1fb9
commit 5a5f24f263

View File

@ -146,7 +146,7 @@ class Serializer(object):
# then the second element of the tuple is the fields to
# set on the related serializer
if isinstance(info, (list, tuple)):
class OnTheFlySerializer(Serializer):
class OnTheFlySerializer(self.__class__):
fields = info
return OnTheFlySerializer