'If related has been set, then this transaction has been refunded or
charged back. This is a bit expensive, so refrain from using on listing
pages.'

def is_refunded(self):

    return Contribution.objects.filter(related=self, type__in=[mkt.CONTRIB_REFUND, mkt.CONTRIB_CHARGEBACK]).exists()
