      Destroy a model instance.
      """
      def destroy(self, request, *args, **kwargs):
          instance = self.get_object()
          instance.delete()
          return Response(status=status.HTTP_204_NO_CONTENT)
  
  
  # The AllowPUTAsCreateMixin was previously the default behaviour
  # for PUT requests. This has now been removed and must be *explicitly*
 
</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() </s> remove         self.create_valid(serializer)
 </s> add         self.perform_create(serializer) </s> remove     def save(self, *args, **kwargs):
        instance = super(MySerializer).save(*args, **kwarg)
 </s> add For example:

    def perform_create(self, serializer):
        # Include the owner attribute directly, rather than from request data.
        instance = serializer.save(owner=self.request.user)
        # Perform a custom post-save action. </s> remove Note that the `.create` method should return the newly created object instance.
 </s> add Note that these methods should return the newly created object instance.
        self.perform_destroy(instance)
      Destroy a model instance.
      """
      def destroy(self, request, *args, **kwargs):
          instance = self.get_object()
        self.perform_destroy(instance)
          return Response(status=status.HTTP_204_NO_CONTENT)
  
  
  # The AllowPUTAsCreateMixin was previously the default behaviour
  # for PUT requests. This has now been removed and must be *explicitly*
keep keep keep keep replace keep keep keep keep keep
 Tweak pre/post save hooks. Return instance in .update(). 
rest_framework/mixins.py