debug_toolbar/panels/sql/panel.py
def current_transaction_id(self, alias):
        """
        Return the current synthetic transaction ID for the specified DB alias.
        """
        trans_id = self._transaction_ids.get(alias)
        # Sometimes it is not possible to detect the beginning of the first transaction,
        # so current_transaction_id() will be called before new_transaction_id().  In
        # that case there won't yet be a transaction ID. so it is necessary to generate
        # one using new_transaction_id().
        if trans_id is None:
            trans_id = self.new_transaction_id(alias)
        return trans_id

        Return the current synthetic transaction ID for the specified DB alias.
        
Return the current synthetic transaction ID for the specified DB alias.
Return the current synthetic transaction ID for the specified DB alias .
def current_transaction_id(self, alias):
        trans_id = self._transaction_ids.get(alias)
        if trans_id is None:
            trans_id = self.new_transaction_id(alias)
        return trans_id
def current_transaction_id ( self , alias ) : trans_id = self . _transaction_ids . get ( alias ) if trans_id is None : trans_id = self . new_transaction_id ( alias ) return trans_id
Return the current synthetic transaction ID for the specified DB alias.
Return the current synthetic transaction ID for the specified DB alias .
"""
        Return the current synthetic transaction ID for the specified DB alias.
        """ # Sometimes it is not possible to detect the beginning of the first transaction, # so current_transaction_id() will be called before new_transaction_id().  In # that case there won't yet be a transaction ID. so it is necessary to generate # one using new_transaction_id().
self
alias