              'non_model_field': 'bar',
          })
          serializer.is_valid()
  
          msginitial = 'Got a `TypeError` when calling `OneFieldModel._default_manager.create()`.'
          with self.assertRaisesMessage(TypeError, msginitial):
              serializer.save()
  
      def test_abstract_model(self):
          """
 
</s> remove                 'Got a `TypeError` when calling `%s._default_manager.create()`. '
 </s> add                 'Got a `TypeError` when calling `%s.%s.create()`. ' </s> remove                 '`%s._default_manager.create()`. You may need to make the field '
 </s> add                 '`%s.%s.create()`. You may need to make the field ' </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'})
        msginitial = 'Got a `TypeError` when calling `OneFieldModel.objects.create()`.'
              'non_model_field': 'bar',
          })
          serializer.is_valid()
  
        msginitial = 'Got a `TypeError` when calling `OneFieldModel.objects.create()`.'
          with self.assertRaisesMessage(TypeError, msginitial):
              serializer.save()
  
      def test_abstract_model(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Improve ModelSerializer.create() error message. (#6112) 
tests/test_model_serializer.py