          self.maxDiff = None
          self.assertEqual(unicode_repr(TestSerializer()), expected)
  
  
  class Issue6110Test(TestCase):
      def test_model_serializer_custom_manager(self):
  
          class TestModelSerializer(serializers.ModelSerializer):
              class Meta:
                  model = Issue6110TestModel
                  fields = ('name',)
 
</s> remove         class TestModelSerializer(serializers.ModelSerializer):
            class Meta:
                model = Issue6110TestModel
                fields = ('name',)
 </s> add     name = models.CharField(max_length=64)
    all_objects = models.Manager()


class Issue6110ModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Issue6110TestModel
        fields = ('name',) </s> remove         instance = TestModelSerializer().create({'name': 'test_name'})
 </s> add class Issue6110Test(TestCase):

    def test_model_serializer_custom_manager(self):
        instance = Issue6110ModelSerializer().create({'name': 'test_name'}) </s> remove class Issue6110TestModel(models.Model):
    """Model without .objects manager."""

    name = models.CharField(max_length=64)
    all_objects = models.Manager()


 </s> add  </s> remove                 'Got a `TypeError` when calling `%s._default_manager.create()`. '
 </s> add                 'Got a `TypeError` when calling `%s.%s.create()`. '
class Issue6110TestModel(models.Model):
    """Model without .objects manager."""
          self.maxDiff = None
          self.assertEqual(unicode_repr(TestSerializer()), expected)
  
  
class Issue6110TestModel(models.Model):
    """Model without .objects manager."""
class Issue6110TestModel(models.Model):
    """Model without .objects manager."""
  
          class TestModelSerializer(serializers.ModelSerializer):
              class Meta:
                  model = Issue6110TestModel
                  fields = ('name',)
keep keep keep keep replace replace keep keep keep keep keep
 Improve ModelSerializer.create() error message. (#6112) 
tests/test_model_serializer.py