fix imports that changed in django 1.6