  from django.db import models
  from django.utils.encoding import force_text
  from django.utils.functional import Promise
  
  from rest_framework.compat import unicode_repr
  
  
  def manager_repr(value):
      model = value.model
      opts = model._meta
      names_and_managers = [
 
</s> remove from __future__ import unicode_literals

 </s> add  </s> remove from django.utils import six, timezone
 </s> add from django.utils import timezone </s> remove from django.utils import six
 </s> add  </s> remove from rest_framework.compat import Mapping, unicode_repr
 </s> add from rest_framework.compat import Mapping </s> remove from django.utils import six
 </s> add 
  from django.db import models
  from django.utils.encoding import force_text
  from django.utils.functional import Promise
  


  
  def manager_repr(value):
      model = value.model
      opts = model._meta
      names_and_managers = [
keep keep keep keep replace replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/utils/representation.py