  import warnings
  from urllib.parse import urljoin
  
  from django.core.validators import (
      DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,
      MinLengthValidator, MinValueValidator, RegexValidator, URLValidator
 
</s> remove from rest_framework import exceptions, serializers
 </s> add from rest_framework import exceptions, renderers, serializers </s> remove                     for ct in self.content_types
 </s> add                     for ct in self.response_media_types </s> remove                 for ct in self.content_types
 </s> add                 for ct in self.request_media_types
from operator import attrgetter
  import warnings
from operator import attrgetter
  from urllib.parse import urljoin
  
  from django.core.validators import (
      DecimalValidator, EmailValidator, MaxLengthValidator, MaxValueValidator,
      MinLengthValidator, MinValueValidator, RegexValidator, URLValidator
add keep keep keep keep keep
 OpenAPI: Map renderers/parsers for request/response media-types. (#6865) 
rest_framework/schemas/openapi.py