      parent = models.ForeignKey(Issue3674ParentModel, related_name='children', on_delete=models.CASCADE)
      value = models.CharField(primary_key=True, max_length=64)
  
  
  class Issue6110TestModel(models.Model):
      """Model without .objects manager."""
  
      name = models.CharField(max_length=64)
      all_objects = models.Manager()
  
  
  class UniqueChoiceModel(models.Model):
      CHOICES = (
          ('choice1', 'choice 1'),
          ('choice2', 'choice 1'),
      )
 
</s> remove class Issue6110Test(TestCase):
    def test_model_serializer_custom_manager(self):
 </s> add class Issue6110TestModel(models.Model):
    """Model without .objects manager.""" </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                 'Got a `TypeError` when calling `%s._default_manager.create()`. '
 </s> add                 'Got a `TypeError` when calling `%s.%s.create()`. '
      parent = models.ForeignKey(Issue3674ParentModel, related_name='children', on_delete=models.CASCADE)
      value = models.CharField(primary_key=True, max_length=64)
  
  







  class UniqueChoiceModel(models.Model):
      CHOICES = (
          ('choice1', 'choice 1'),
          ('choice2', 'choice 1'),
      )
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Improve ModelSerializer.create() error message. (#6112) 
tests/test_model_serializer.py