      return repr(value)
  
  
  def smart_repr(value):
      value = repr(value)
  
      # Representations like u'help text'
      # should simply be presented as 'help text'
      if value.startswith("u'") and value.endswith("'"):
          return value[1:]
 
</s> remove     foreign_key = PrimaryKeyRelatedField(label='foreign key', queryset=<django.db.models.manager.Manager object>)
    one_to_one = PrimaryKeyRelatedField(label='one to one', queryset=<django.db.models.manager.Manager object>)
    many_to_many = PrimaryKeyRelatedField(label='many to many', many=True, queryset=<django.db.models.manager.Manager object>)
 </s> add     foreign_key = PrimaryKeyRelatedField(label='foreign key', queryset=ForeignKeyTargetModel.objects.all())
    one_to_one = PrimaryKeyRelatedField(label='one to one', queryset=OneToOneTargetModel.objects.all())
    many_to_many = PrimaryKeyRelatedField(label='many to many', many=True, queryset=ManyToManyTargetModel.objects.all()) </s> remove     foreign_key = HyperlinkedRelatedField(label='foreign key', queryset=<django.db.models.manager.Manager object>, view_name='foreignkeytargetmodel-detail')
    one_to_one = HyperlinkedRelatedField(label='one to one', queryset=<django.db.models.manager.Manager object>, view_name='onetoonetargetmodel-detail')
    many_to_many = HyperlinkedRelatedField(label='many to many', many=True, queryset=<django.db.models.manager.Manager object>, view_name='manytomanytargetmodel-detail')
 </s> add     foreign_key = HyperlinkedRelatedField(label='foreign key', queryset=ForeignKeyTargetModel.objects.all(), view_name='foreignkeytargetmodel-detail')
    one_to_one = HyperlinkedRelatedField(label='one to one', queryset=OneToOneTargetModel.objects.all(), view_name='onetoonetargetmodel-detail')
    many_to_many = HyperlinkedRelatedField(label='many to many', many=True, queryset=ManyToManyTargetModel.objects.all(), view_name='manytomanytargetmodel-detail')
    if isinstance(value, models.Manager):
        return manager_repr(value)

      return repr(value)
  
  
  def smart_repr(value):
    if isinstance(value, models.Manager):
        return manager_repr(value)

      value = repr(value)
  
      # Representations like u'help text'
      # should simply be presented as 'help text'
      if value.startswith("u'") and value.endswith("'"):
          return value[1:]
keep keep keep add keep keep keep keep keep keep
 Nice manager representations on serializer classes 
rest_framework/utils/representation.py