'Rolls back the current transaction.
Must be preceded by a start_transaction call.'

def rollback_transaction(self):

    if self.dry_run:
        self.pending_transactions -= 1
    transaction.rollback(using=self.db_alias)
    transaction.leave_transaction_management(using=self.db_alias)
