Compatibility fix for django_rest_framework 2.3.6