              if validators:
                  self.validators.extend(validators)
                  self._kwargs['validators'] = validators
  
      def create(self, attrs):
          ModelClass = self.Meta.model
  
          # Remove many-to-many relationships from attrs.
          # They are not valid arguments to the default `.create()` method,
          # as they require that the instance has already been saved.
 
</s> remove         # Remove many-to-many relationships from attrs.
 </s> add         # Remove many-to-many relationships from validated_attrs. </s> remove             if relation_info.to_many and (field_name in attrs):
                many_to_many[field_name] = attrs.pop(field_name)
 </s> add             if relation_info.to_many and (field_name in validated_attrs):
                many_to_many[field_name] = validated_attrs.pop(field_name) </s> remove         instance = ModelClass.objects.create(**attrs)
 </s> add         instance = ModelClass.objects.create(**validated_attrs) </s> remove Alternatively write your view logic exlpicitly, or tie your pre/post save behavior into the model class or model manager.
 </s> add The `pre_delete` and `post_delete` hooks no longer exist, and are replaced with `.perform_destroy(self, instance)`, which should delete the instance and perform any custom actions.

    def perform_destroy(self, instance):
        # Perform a custom pre-delete action.
        send_deletion_alert(user=instance.created_by, deleted=instance)
        # Delete the object instance.
        instance.delete()
    def create(self, validated_attrs):
              if validators:
                  self.validators.extend(validators)
                  self._kwargs['validators'] = validators
  
    def create(self, validated_attrs):
          ModelClass = self.Meta.model
  
          # Remove many-to-many relationships from attrs.
          # They are not valid arguments to the default `.create()` method,
          # as they require that the instance has already been saved.
keep keep keep keep replace keep keep keep keep keep
 Tweak pre/post save hooks. Return instance in .update(). 
rest_framework/serializers.py