Fix rest_framework integration.