data_migration/services/graph.py
def revert(self) -> None:
        """Reverts an applied migration node."""
        if not self.node.is_applied:
            return

        backup_node = Node(
            name=self.node.name,
            app_name=self.node.app_name
        )
        self.node.qs.get(pk=self.node.pk).delete()
        self.node = backup_node
Reverts an applied migration node.
Reverts an applied migration node.
Reverts an applied migration node .
def revert(self) -> None:
        if not self.node.is_applied:
            return
        backup_node = Node(
            name=self.node.name,
            app_name=self.node.app_name
        )
        self.node.qs.get(pk=self.node.pk).delete()
        self.node = backup_node
def revert ( self ) -> None : if not self . node . is_applied : return backup_node = Node ( name = self . node . name , app_name = self . node . app_name ) self . node . qs . get ( pk = self . node . pk ) . delete ( ) self . node = backup_node
Reverts an applied migration node.
Reverts an applied migration node .
"""Reverts an applied migration node."""
self