'Delete all payments that are associated with a specific transaction'

def delete_payments(self, transaction_id):

    self.execute(u'DELETE    FROM    payments    WHERE    transaction_trader_id    =    ?    AND    transaction_number    =    ?', (unicode(transaction_id.trader_id), unicode(transaction_id.transaction_number)))
