          for field_name, relation_info in info.relations.items():
              if relation_info.to_many and (field_name in validated_attrs):
                  many_to_many[field_name] = validated_attrs.pop(field_name)
  
          instance = ModelClass.objects.create(**validated_attrs)
  
          # Save many-to-many relationships after the instance is created.
          if many_to_many:
              for field_name, value in many_to_many.items():
                  setattr(instance, field_name, value)
 
</s>
        try:
            instance = ModelClass.objects.create(**validated_attrs)
        except TypeError as exc:
            msg = (
                'The mentioned argument might be a field on the serializer '
                'that is not part of the model. You need to override the '
                'create() method in your ModelSerializer subclass to support '
                'this.')
            six.reraise(
                type(exc),
                type(exc)(str(exc) + '. ' + msg),
                sys.exc_info()[2])
          for field_name, relation_info in info.relations.items():
              if relation_info.to_many and (field_name in validated_attrs):
                  many_to_many[field_name] = validated_attrs.pop(field_name)
  
        try:
            instance = ModelClass.objects.create(**validated_attrs)
        except TypeError as exc:
            msg = (
                'The mentioned argument might be a field on the serializer '
                'that is not part of the model. You need to override the '
                'create() method in your ModelSerializer subclass to support '
                'this.')
            six.reraise(
                type(exc),
                type(exc)(str(exc) + '. ' + msg),
                sys.exc_info()[2])
  
          # Save many-to-many relationships after the instance is created.
          if many_to_many:
              for field_name, value in many_to_many.items():
                  setattr(instance, field_name, value)
keep keep keep keep replace keep keep keep keep keep
 More helpful error message when default `.create` fails. Closes #2013.
rest_framework/serializers.py