Change models to new version of rest framework.