fix django<1.5 compat
fix serialization support and reversion support