flashingpumpkin/django-rest-framework — comment on commit b9f0054ae2efaad133261822ac99151975db9286
File:  line 0
By tomchristie:

Great, yup. Although can we just do this...

class OnTheFlySerializer(self.__class__):
fields = info

Seems to work for me.