def deleted ( self , instance ) : self . session_manager . delete ( instance , commit = True ) return '' , HTTPStatus . NO_CONTENT
python django delete killed
Convenience method for deleting a model ( automatically commits the delete to the database and returns with an HTTP 204 status code )
def deleted(self, instance):
        """
        Convenience method for deleting a model (automatically commits the
        delete to the database and returns with an HTTP 204 status code)
        """
        self.session_manager.delete(instance, commit=True)
        return '', HTTPStatus.NO_CONTENT