Patch for new django rest framework