Added support for recent versions of Django Rest Framework.