Clone of https://code.google.com/p/wadofstuff/wiki/DjangoFullSerializers with Django 1.5 fix