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