making this work with django 1.5, and the new version of django rest framework