Closes #5425 as per https://github.com/encode/django-rest-framework/issues/5425#issuecomment-341063819