  
  import inspect
  
  import django
  from django.apps import apps
  from django.conf import settings
  from django.core import validators
  from django.core.exceptions import ImproperlyConfigured
  from django.db import models
  from django.utils import six
 
</s> remove from django.core.exceptions import ImproperlyConfigured
from django.db import models
 </s> add  </s> remove import inspect

 </s> add  </s> remove from django.utils import six
 </s> add  </s> remove import rest_framework.utils.model_meta
from rest_framework.compat import _resolve_model
 </s> add  </s> remove from django.core.exceptions import ImproperlyConfigured
 </s> add 
  
  import inspect
  
  import django

  from django.conf import settings
  from django.core import validators
  from django.core.exceptions import ImproperlyConfigured
  from django.db import models
  from django.utils import six
keep keep keep keep replace keep keep keep keep keep
 Remove unused compat._resolve_model() (#5733)

Last use removed in c674687782ef96a3bb8466b412e99debd3d04f00. 
rest_framework/compat.py