Make it compatible with django rest framework 3.0.0